Codebase list nsntrace / 123c28c
New upstream snapshot. Debian Janitor 1 year, 3 months ago
25 changed file(s) with 12767 addition(s) and 204 deletion(s). Raw diff Collapse all Expand all
+0
-39
.gitignore less more
0 *.pcap
1 /autom4te.cache/
2 /config/
3 Makefile
4 Makefile.in
5 aclocal.m4
6 app.info
7 compile
8 config.h
9 config.h.in
10 config.log
11 config.status
12 configure
13 configure.scan
14 coverage_report
15 depcomp
16 install-sh
17 libtool
18 m4
19 missing
20 test-driver
21 *.trs
22 src/nsntrace
23 tests/udp_send
24 stamp-h1
25 *~
26 *.html
27 *.log
28 *.o
29 *.la
30 *.so*
31 *.a
32 .deps
33 *.tar*
34 *.zip
35 *.lo
36 *.gcno
37 *.gcda
38 man/*.1
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 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 = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
27 am__make_running_with_option = \
28 case $${target_option-} in \
29 ?) ;; \
30 *) echo "am__make_running_with_option: internal error: invalid" \
31 "target option '$${target_option-}' specified" >&2; \
32 exit 1;; \
33 esac; \
34 has_opt=no; \
35 sane_makeflags=$$MAKEFLAGS; \
36 if $(am__is_gnu_make); then \
37 sane_makeflags=$$MFLAGS; \
38 else \
39 case $$MAKEFLAGS in \
40 *\\[\ \ ]*) \
41 bs=\\; \
42 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
43 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
44 esac; \
45 fi; \
46 skip_next=no; \
47 strip_trailopt () \
48 { \
49 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
50 }; \
51 for flg in $$sane_makeflags; do \
52 test $$skip_next = yes && { skip_next=no; continue; }; \
53 case $$flg in \
54 *=*|--*) continue;; \
55 -*I) strip_trailopt 'I'; skip_next=yes;; \
56 -*I?*) strip_trailopt 'I';; \
57 -*O) strip_trailopt 'O'; skip_next=yes;; \
58 -*O?*) strip_trailopt 'O';; \
59 -*l) strip_trailopt 'l'; skip_next=yes;; \
60 -*l?*) strip_trailopt 'l';; \
61 -[dEDm]) skip_next=yes;; \
62 -[JT]) skip_next=yes;; \
63 esac; \
64 case $$flg in \
65 *$$target_option*) has_opt=yes; break;; \
66 esac; \
67 done; \
68 test $$has_opt = yes
69 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
70 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
71 pkgdatadir = $(datadir)/@PACKAGE@
72 pkgincludedir = $(includedir)/@PACKAGE@
73 pkglibdir = $(libdir)/@PACKAGE@
74 pkglibexecdir = $(libexecdir)/@PACKAGE@
75 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
76 install_sh_DATA = $(install_sh) -c -m 644
77 install_sh_PROGRAM = $(install_sh) -c
78 install_sh_SCRIPT = $(install_sh) -c
79 INSTALL_HEADER = $(INSTALL_DATA)
80 transform = $(program_transform_name)
81 NORMAL_INSTALL = :
82 PRE_INSTALL = :
83 POST_INSTALL = :
84 NORMAL_UNINSTALL = :
85 PRE_UNINSTALL = :
86 POST_UNINSTALL = :
87 subdir = .
88 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
89 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
90 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91 $(ACLOCAL_M4)
92 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
93 $(am__configure_deps) $(am__DIST_COMMON)
94 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
95 configure.lineno config.status.lineno
96 mkinstalldirs = $(install_sh) -d
97 CONFIG_HEADER = config.h
98 CONFIG_CLEAN_FILES =
99 CONFIG_CLEAN_VPATH_FILES =
100 AM_V_P = $(am__v_P_@AM_V@)
101 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
102 am__v_P_0 = false
103 am__v_P_1 = :
104 AM_V_GEN = $(am__v_GEN_@AM_V@)
105 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
106 am__v_GEN_0 = @echo " GEN " $@;
107 am__v_GEN_1 =
108 AM_V_at = $(am__v_at_@AM_V@)
109 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
110 am__v_at_0 = @
111 am__v_at_1 =
112 SOURCES =
113 DIST_SOURCES =
114 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
115 ctags-recursive dvi-recursive html-recursive info-recursive \
116 install-data-recursive install-dvi-recursive \
117 install-exec-recursive install-html-recursive \
118 install-info-recursive install-pdf-recursive \
119 install-ps-recursive install-recursive installcheck-recursive \
120 installdirs-recursive pdf-recursive ps-recursive \
121 tags-recursive uninstall-recursive
122 am__can_run_installinfo = \
123 case $$AM_UPDATE_INFO_DIR in \
124 n|no|NO) false;; \
125 *) (install-info --version) >/dev/null 2>&1;; \
126 esac
127 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
128 distclean-recursive maintainer-clean-recursive
129 am__recursive_targets = \
130 $(RECURSIVE_TARGETS) \
131 $(RECURSIVE_CLEAN_TARGETS) \
132 $(am__extra_recursive_targets)
133 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
134 cscope distdir distdir-am dist dist-all distcheck
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
136 config.h.in
137 # Read a list of newline-separated strings from the standard input,
138 # and print each of them once, without duplicates. Input order is
139 # *not* preserved.
140 am__uniquify_input = $(AWK) '\
141 BEGIN { nonempty = 0; } \
142 { items[$$0] = 1; nonempty = 1; } \
143 END { if (nonempty) { for (i in items) print i; }; } \
144 '
145 # Make sure the list of sources is unique. This is necessary because,
146 # e.g., the same source file might be shared among _SOURCES variables
147 # for different programs/libraries.
148 am__define_uniq_tagged_files = \
149 list='$(am__tagged_files)'; \
150 unique=`for i in $$list; do \
151 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
152 done | $(am__uniquify_input)`
153 DIST_SUBDIRS = $(SUBDIRS)
154 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
155 README.md compile depcomp install-sh missing
156 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
157 distdir = $(PACKAGE)-$(VERSION)
158 top_distdir = $(distdir)
159 am__remove_distdir = \
160 if test -d "$(distdir)"; then \
161 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
162 && rm -rf "$(distdir)" \
163 || { sleep 5 && rm -rf "$(distdir)"; }; \
164 else :; fi
165 am__post_remove_distdir = $(am__remove_distdir)
166 am__relativize = \
167 dir0=`pwd`; \
168 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
169 sed_rest='s,^[^/]*/*,,'; \
170 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
171 sed_butlast='s,/*[^/]*$$,,'; \
172 while test -n "$$dir1"; do \
173 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
174 if test "$$first" != "."; then \
175 if test "$$first" = ".."; then \
176 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
177 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
178 else \
179 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
180 if test "$$first2" = "$$first"; then \
181 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
182 else \
183 dir2="../$$dir2"; \
184 fi; \
185 dir0="$$dir0"/"$$first"; \
186 fi; \
187 fi; \
188 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
189 done; \
190 reldir="$$dir2"
191 DIST_ARCHIVES = $(distdir).tar.gz
192 GZIP_ENV = --best
193 DIST_TARGETS = dist-gzip
194 # Exists only to be overridden by the user if desired.
195 AM_DISTCHECK_DVI_TARGET = dvi
196 distuninstallcheck_listfiles = find . -type f -print
197 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
198 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
199 distcleancheck_listfiles = find . -type f -print
200 ACLOCAL = @ACLOCAL@
201 AMTAR = @AMTAR@
202 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
203 AUTOCONF = @AUTOCONF@
204 AUTOHEADER = @AUTOHEADER@
205 AUTOMAKE = @AUTOMAKE@
206 AWK = @AWK@
207 CC = @CC@
208 CCDEPMODE = @CCDEPMODE@
209 CFLAGS = @CFLAGS@
210 CPPFLAGS = @CPPFLAGS@
211 CSCOPE = @CSCOPE@
212 CTAGS = @CTAGS@
213 CYGPATH_W = @CYGPATH_W@
214 DEFS = @DEFS@
215 DEPDIR = @DEPDIR@
216 ECHO_C = @ECHO_C@
217 ECHO_N = @ECHO_N@
218 ECHO_T = @ECHO_T@
219 ETAGS = @ETAGS@
220 EXEEXT = @EXEEXT@
221 INSTALL = @INSTALL@
222 INSTALL_DATA = @INSTALL_DATA@
223 INSTALL_PROGRAM = @INSTALL_PROGRAM@
224 INSTALL_SCRIPT = @INSTALL_SCRIPT@
225 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
226 IPTABLES_CHECK = @IPTABLES_CHECK@
227 LDFLAGS = @LDFLAGS@
228 LIBNL_CFLAGS = @LIBNL_CFLAGS@
229 LIBNL_LIBS = @LIBNL_LIBS@
230 LIBOBJS = @LIBOBJS@
231 LIBS = @LIBS@
232 LTLIBOBJS = @LTLIBOBJS@
233 MAKEINFO = @MAKEINFO@
234 MKDIR_P = @MKDIR_P@
235 OBJEXT = @OBJEXT@
236 PACKAGE = @PACKAGE@
237 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
238 PACKAGE_NAME = @PACKAGE_NAME@
239 PACKAGE_STRING = @PACKAGE_STRING@
240 PACKAGE_TARNAME = @PACKAGE_TARNAME@
241 PACKAGE_URL = @PACKAGE_URL@
242 PACKAGE_VERSION = @PACKAGE_VERSION@
243 PATH_SEPARATOR = @PATH_SEPARATOR@
244 PKG_CONFIG = @PKG_CONFIG@
245 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
246 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
247 SET_MAKE = @SET_MAKE@
248 SHELL = @SHELL@
249 STRIP = @STRIP@
250 VERSION = @VERSION@
251 XSLTPROC = @XSLTPROC@
252 abs_builddir = @abs_builddir@
253 abs_srcdir = @abs_srcdir@
254 abs_top_builddir = @abs_top_builddir@
255 abs_top_srcdir = @abs_top_srcdir@
256 ac_ct_CC = @ac_ct_CC@
257 am__include = @am__include@
258 am__leading_dot = @am__leading_dot@
259 am__quote = @am__quote@
260 am__tar = @am__tar@
261 am__untar = @am__untar@
262 bindir = @bindir@
263 build_alias = @build_alias@
264 builddir = @builddir@
265 datadir = @datadir@
266 datarootdir = @datarootdir@
267 docdir = @docdir@
268 dvidir = @dvidir@
269 exec_prefix = @exec_prefix@
270 host_alias = @host_alias@
271 htmldir = @htmldir@
272 includedir = @includedir@
273 infodir = @infodir@
274 install_sh = @install_sh@
275 libdir = @libdir@
276 libexecdir = @libexecdir@
277 localedir = @localedir@
278 localstatedir = @localstatedir@
279 mandir = @mandir@
280 mkdir_p = @mkdir_p@
281 oldincludedir = @oldincludedir@
282 pdfdir = @pdfdir@
283 prefix = @prefix@
284 program_transform_name = @program_transform_name@
285 psdir = @psdir@
286 runstatedir = @runstatedir@
287 sbindir = @sbindir@
288 sharedstatedir = @sharedstatedir@
289 srcdir = @srcdir@
290 sysconfdir = @sysconfdir@
291 target_alias = @target_alias@
292 top_build_prefix = @top_build_prefix@
293 top_builddir = @top_builddir@
294 top_srcdir = @top_srcdir@
295 SUBDIRS = src tests man
296 EXTRA_DIST = LICENSE
297 all: config.h
298 $(MAKE) $(AM_MAKEFLAGS) all-recursive
299
300 .SUFFIXES:
301 am--refresh: Makefile
302 @:
303 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
304 @for dep in $?; do \
305 case '$(am__configure_deps)' in \
306 *$$dep*) \
307 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
308 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
309 && exit 0; \
310 exit 1;; \
311 esac; \
312 done; \
313 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
314 $(am__cd) $(top_srcdir) && \
315 $(AUTOMAKE) --foreign Makefile
316 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
317 @case '$?' in \
318 *config.status*) \
319 echo ' $(SHELL) ./config.status'; \
320 $(SHELL) ./config.status;; \
321 *) \
322 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
323 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
324 esac;
325
326 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
327 $(SHELL) ./config.status --recheck
328
329 $(top_srcdir)/configure: $(am__configure_deps)
330 $(am__cd) $(srcdir) && $(AUTOCONF)
331 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
332 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
333 $(am__aclocal_m4_deps):
334
335 config.h: stamp-h1
336 @test -f $@ || rm -f stamp-h1
337 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
338
339 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
340 @rm -f stamp-h1
341 cd $(top_builddir) && $(SHELL) ./config.status config.h
342 $(srcdir)/config.h.in: $(am__configure_deps)
343 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
344 rm -f stamp-h1
345 touch $@
346
347 distclean-hdr:
348 -rm -f config.h stamp-h1
349
350 # This directory's subdirectories are mostly independent; you can cd
351 # into them and run 'make' without going through this Makefile.
352 # To change the values of 'make' variables: instead of editing Makefiles,
353 # (1) if the variable is set in 'config.status', edit 'config.status'
354 # (which will cause the Makefiles to be regenerated when you run 'make');
355 # (2) otherwise, pass the desired values on the 'make' command line.
356 $(am__recursive_targets):
357 @fail=; \
358 if $(am__make_keepgoing); then \
359 failcom='fail=yes'; \
360 else \
361 failcom='exit 1'; \
362 fi; \
363 dot_seen=no; \
364 target=`echo $@ | sed s/-recursive//`; \
365 case "$@" in \
366 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
367 *) list='$(SUBDIRS)' ;; \
368 esac; \
369 for subdir in $$list; do \
370 echo "Making $$target in $$subdir"; \
371 if test "$$subdir" = "."; then \
372 dot_seen=yes; \
373 local_target="$$target-am"; \
374 else \
375 local_target="$$target"; \
376 fi; \
377 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
378 || eval $$failcom; \
379 done; \
380 if test "$$dot_seen" = "no"; then \
381 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
382 fi; test -z "$$fail"
383
384 ID: $(am__tagged_files)
385 $(am__define_uniq_tagged_files); mkid -fID $$unique
386 tags: tags-recursive
387 TAGS: tags
388
389 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
390 set x; \
391 here=`pwd`; \
392 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
393 include_option=--etags-include; \
394 empty_fix=.; \
395 else \
396 include_option=--include; \
397 empty_fix=; \
398 fi; \
399 list='$(SUBDIRS)'; for subdir in $$list; do \
400 if test "$$subdir" = .; then :; else \
401 test ! -f $$subdir/TAGS || \
402 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
403 fi; \
404 done; \
405 $(am__define_uniq_tagged_files); \
406 shift; \
407 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
408 test -n "$$unique" || unique=$$empty_fix; \
409 if test $$# -gt 0; then \
410 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
411 "$$@" $$unique; \
412 else \
413 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
414 $$unique; \
415 fi; \
416 fi
417 ctags: ctags-recursive
418
419 CTAGS: ctags
420 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
421 $(am__define_uniq_tagged_files); \
422 test -z "$(CTAGS_ARGS)$$unique" \
423 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
424 $$unique
425
426 GTAGS:
427 here=`$(am__cd) $(top_builddir) && pwd` \
428 && $(am__cd) $(top_srcdir) \
429 && gtags -i $(GTAGS_ARGS) "$$here"
430 cscope: cscope.files
431 test ! -s cscope.files \
432 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
433 clean-cscope:
434 -rm -f cscope.files
435 cscope.files: clean-cscope cscopelist
436 cscopelist: cscopelist-recursive
437
438 cscopelist-am: $(am__tagged_files)
439 list='$(am__tagged_files)'; \
440 case "$(srcdir)" in \
441 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
442 *) sdir=$(subdir)/$(srcdir) ;; \
443 esac; \
444 for i in $$list; do \
445 if test -f "$$i"; then \
446 echo "$(subdir)/$$i"; \
447 else \
448 echo "$$sdir/$$i"; \
449 fi; \
450 done >> $(top_builddir)/cscope.files
451
452 distclean-tags:
453 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
454 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
455 distdir: $(BUILT_SOURCES)
456 $(MAKE) $(AM_MAKEFLAGS) distdir-am
457
458 distdir-am: $(DISTFILES)
459 $(am__remove_distdir)
460 test -d "$(distdir)" || mkdir "$(distdir)"
461 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
462 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
463 list='$(DISTFILES)'; \
464 dist_files=`for file in $$list; do echo $$file; done | \
465 sed -e "s|^$$srcdirstrip/||;t" \
466 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
467 case $$dist_files in \
468 */*) $(MKDIR_P) `echo "$$dist_files" | \
469 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
470 sort -u` ;; \
471 esac; \
472 for file in $$dist_files; do \
473 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
474 if test -d $$d/$$file; then \
475 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
476 if test -d "$(distdir)/$$file"; then \
477 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
478 fi; \
479 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
480 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
481 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
482 fi; \
483 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
484 else \
485 test -f "$(distdir)/$$file" \
486 || cp -p $$d/$$file "$(distdir)/$$file" \
487 || exit 1; \
488 fi; \
489 done
490 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
491 if test "$$subdir" = .; then :; else \
492 $(am__make_dryrun) \
493 || test -d "$(distdir)/$$subdir" \
494 || $(MKDIR_P) "$(distdir)/$$subdir" \
495 || exit 1; \
496 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
497 $(am__relativize); \
498 new_distdir=$$reldir; \
499 dir1=$$subdir; dir2="$(top_distdir)"; \
500 $(am__relativize); \
501 new_top_distdir=$$reldir; \
502 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
503 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
504 ($(am__cd) $$subdir && \
505 $(MAKE) $(AM_MAKEFLAGS) \
506 top_distdir="$$new_top_distdir" \
507 distdir="$$new_distdir" \
508 am__remove_distdir=: \
509 am__skip_length_check=: \
510 am__skip_mode_fix=: \
511 distdir) \
512 || exit 1; \
513 fi; \
514 done
515 -test -n "$(am__skip_mode_fix)" \
516 || find "$(distdir)" -type d ! -perm -755 \
517 -exec chmod u+rwx,go+rx {} \; -o \
518 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
519 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
520 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
521 || chmod -R a+r "$(distdir)"
522 dist-gzip: distdir
523 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
524 $(am__post_remove_distdir)
525
526 dist-bzip2: distdir
527 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
528 $(am__post_remove_distdir)
529
530 dist-lzip: distdir
531 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
532 $(am__post_remove_distdir)
533
534 dist-xz: distdir
535 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
536 $(am__post_remove_distdir)
537
538 dist-zstd: distdir
539 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
540 $(am__post_remove_distdir)
541
542 dist-tarZ: distdir
543 @echo WARNING: "Support for distribution archives compressed with" \
544 "legacy program 'compress' is deprecated." >&2
545 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
546 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
547 $(am__post_remove_distdir)
548
549 dist-shar: distdir
550 @echo WARNING: "Support for shar distribution archives is" \
551 "deprecated." >&2
552 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
553 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
554 $(am__post_remove_distdir)
555
556 dist-zip: distdir
557 -rm -f $(distdir).zip
558 zip -rq $(distdir).zip $(distdir)
559 $(am__post_remove_distdir)
560
561 dist dist-all:
562 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
563 $(am__post_remove_distdir)
564
565 # This target untars the dist file and tries a VPATH configuration. Then
566 # it guarantees that the distribution is self-contained by making another
567 # tarfile.
568 distcheck: dist
569 case '$(DIST_ARCHIVES)' in \
570 *.tar.gz*) \
571 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
572 *.tar.bz2*) \
573 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
574 *.tar.lz*) \
575 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
576 *.tar.xz*) \
577 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
578 *.tar.Z*) \
579 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
580 *.shar.gz*) \
581 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
582 *.zip*) \
583 unzip $(distdir).zip ;;\
584 *.tar.zst*) \
585 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
586 esac
587 chmod -R a-w $(distdir)
588 chmod u+w $(distdir)
589 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
590 chmod a-w $(distdir)
591 test -d $(distdir)/_build || exit 0; \
592 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
593 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
594 && am__cwd=`pwd` \
595 && $(am__cd) $(distdir)/_build/sub \
596 && ../../configure \
597 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
598 $(DISTCHECK_CONFIGURE_FLAGS) \
599 --srcdir=../.. --prefix="$$dc_install_base" \
600 && $(MAKE) $(AM_MAKEFLAGS) \
601 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
602 && $(MAKE) $(AM_MAKEFLAGS) check \
603 && $(MAKE) $(AM_MAKEFLAGS) install \
604 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
605 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
606 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
607 distuninstallcheck \
608 && chmod -R a-w "$$dc_install_base" \
609 && ({ \
610 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
611 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
612 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
613 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
614 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
615 } || { rm -rf "$$dc_destdir"; exit 1; }) \
616 && rm -rf "$$dc_destdir" \
617 && $(MAKE) $(AM_MAKEFLAGS) dist \
618 && rm -rf $(DIST_ARCHIVES) \
619 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
620 && cd "$$am__cwd" \
621 || exit 1
622 $(am__post_remove_distdir)
623 @(echo "$(distdir) archives ready for distribution: "; \
624 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
625 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
626 distuninstallcheck:
627 @test -n '$(distuninstallcheck_dir)' || { \
628 echo 'ERROR: trying to run $@ with an empty' \
629 '$$(distuninstallcheck_dir)' >&2; \
630 exit 1; \
631 }; \
632 $(am__cd) '$(distuninstallcheck_dir)' || { \
633 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
634 exit 1; \
635 }; \
636 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
637 || { echo "ERROR: files left after uninstall:" ; \
638 if test -n "$(DESTDIR)"; then \
639 echo " (check DESTDIR support)"; \
640 fi ; \
641 $(distuninstallcheck_listfiles) ; \
642 exit 1; } >&2
643 distcleancheck: distclean
644 @if test '$(srcdir)' = . ; then \
645 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
646 exit 1 ; \
647 fi
648 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
649 || { echo "ERROR: files left in build directory after distclean:" ; \
650 $(distcleancheck_listfiles) ; \
651 exit 1; } >&2
652 check-am: all-am
653 check: check-recursive
654 all-am: Makefile config.h
655 installdirs: installdirs-recursive
656 installdirs-am:
657 install: install-recursive
658 install-exec: install-exec-recursive
659 install-data: install-data-recursive
660 uninstall: uninstall-recursive
661
662 install-am: all-am
663 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
664
665 installcheck: installcheck-recursive
666 install-strip:
667 if test -z '$(STRIP)'; then \
668 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
669 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
670 install; \
671 else \
672 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
673 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
674 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
675 fi
676 mostlyclean-generic:
677
678 clean-generic:
679
680 distclean-generic:
681 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
682 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
683
684 maintainer-clean-generic:
685 @echo "This command is intended for maintainers to use"
686 @echo "it deletes files that may require special tools to rebuild."
687 clean: clean-recursive
688
689 clean-am: clean-generic mostlyclean-am
690
691 distclean: distclean-recursive
692 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
693 -rm -f Makefile
694 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
695
696 dvi: dvi-recursive
697
698 dvi-am:
699
700 html: html-recursive
701
702 html-am:
703
704 info: info-recursive
705
706 info-am:
707
708 install-data-am:
709
710 install-dvi: install-dvi-recursive
711
712 install-dvi-am:
713
714 install-exec-am:
715
716 install-html: install-html-recursive
717
718 install-html-am:
719
720 install-info: install-info-recursive
721
722 install-info-am:
723
724 install-man:
725
726 install-pdf: install-pdf-recursive
727
728 install-pdf-am:
729
730 install-ps: install-ps-recursive
731
732 install-ps-am:
733
734 installcheck-am:
735
736 maintainer-clean: maintainer-clean-recursive
737 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
738 -rm -rf $(top_srcdir)/autom4te.cache
739 -rm -f Makefile
740 maintainer-clean-am: distclean-am maintainer-clean-generic
741
742 mostlyclean: mostlyclean-recursive
743
744 mostlyclean-am: mostlyclean-generic
745
746 pdf: pdf-recursive
747
748 pdf-am:
749
750 ps: ps-recursive
751
752 ps-am:
753
754 uninstall-am:
755
756 .MAKE: $(am__recursive_targets) all install-am install-strip
757
758 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
759 am--refresh check check-am clean clean-cscope clean-generic \
760 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
761 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
762 dist-zstd distcheck distclean distclean-generic distclean-hdr \
763 distclean-tags distcleancheck distdir distuninstallcheck dvi \
764 dvi-am html html-am info info-am install install-am \
765 install-data install-data-am install-dvi install-dvi-am \
766 install-exec install-exec-am install-html install-html-am \
767 install-info install-info-am install-man install-pdf \
768 install-pdf-am install-ps install-ps-am install-strip \
769 installcheck installcheck-am installdirs installdirs-am \
770 maintainer-clean maintainer-clean-generic mostlyclean \
771 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
772 uninstall-am
773
774 .PRECIOUS: Makefile
775
776
777 # Tell versions [3.59,3.63) of GNU make to not export all variables.
778 # Otherwise a system limit (for SysV at least) may be exceeded.
779 .NOEXPORT:
0
01 # nsntrace
12 > Perform network trace of a single process by using network namespaces.
23
3 This application uses Linux network namespaces to perform network traces of a single application. The traces are saved as pcap files. And can later be analyzed by for instance Wireshark.
4 This application uses Linux network namespaces to perform a network trace of a single application. The trace is saved as a pcap file. And can later be analyzed by for instance Wireshark or tshark.
45
56 The nsntrace application is heavily inspired by the askbubuntu reply [here](https://askubuntu.com/a/499850).
67 And uses the same approach only confined to a single C program.
78
8 What the application does is use the clone syscall to create a new
9 network namespace (CLONE_NEWNET) and from that namespace launch the
10 requested process as well as start a trace using libpcap. This will ensure that all
11 the packets we trace come from the process.
9 What the application does is use the clone syscall to create a new network namespace (CLONE_NEWNET) and from that namespace launch the requested process as well as start a trace using libpcap. This will ensure that all the packets we trace come from the process.
1210
13 The problem we are left with is that the process is isolated in the
14 namespace and cannot reach any other network. We get around that by
15 creating virtual network interfaces. We keep one of them in the
16 root network namespace and but the other one in the newly created one where
17 our tracing takes place. We set the root namespaced one as the default gw
18 of the trace namespaced virtual device.
11 The problem we are left with is that the process is isolated in the namespace and cannot reach any other network. We get around that by creating virtual network interfaces. We keep one of them in the root network namespace and but the other one in the newly created one where our tracing takes place. We set the root namespaced one as the default gateway of the trace namespaced virtual device.
1912
20 And then to make sure we can reach our indented net, we use ip
21 tables and NAT to forward all traffic from the virtual device to our
22 default network interface.
13 And then to make sure we can reach our intended net, we use iptables and NAT to forward all traffic from the virtual device to our default network interface.
2314
24 This will allow us to capture the packets from a single process while
25 it is communicating with our default network. A limitation is that our
26 ip address will be the NAT one of the virtual device.
15 This will allow us to capture the packets from a single process while it is communicating with our default network. A limitation is that our ip address will be the NAT one of the virtual device.
2716
28 Another limitation is, that since we are using iptables and since
29 we are tracing raw sockets. This application needs to be run as root.
17 Another limitation is, that since we are using iptables and since we are tracing raw sockets. This application needs to be run as root.
3018
31 On many systems today the nameserver functionality is handled by an
32 application such as systemd-resolved or dnsmasq and the nameserver
33 address is a loopback address (like 127.0.0.53) where that application
34 listens for incoming DNS queries.
19 On many systems today the nameserver functionality is handled by an application such as systemd-resolved or dnsmasq and the nameserver address is a loopback address (like 127.0.0.53) where that application listens for incoming DNS queries.
3520
36 This will not work for us in this network namespace environment, since
37 we have our own namespaced loopback device. To work around this one can use the
38 `--use-public-dns` option to override resolv.conf in the namespace. Then nsntrace
39 will use nameservers from Quad9 (9.9.9.9), Cloudflare (1.1.1.1), Google (8.8.8.8) and
40 OpenDNS (208.67.222.222) to perform DNS queries.
21 This will not work for us in this network namespace environment, since we have our own namespaced loopback device. To work around this one can use the `--use-public-dns` option to override resolv.conf in the namespace. Then nsntrace will use nameservers from Quad9 (9.9.9.9), Cloudflare (1.1.1.1), Google (8.8.8.8) and OpenDNS (208.67.222.222) to perform DNS queries.
4122
4223 ## usage
4324 $ nsntrace
9778 13 0.113167 142.250.74.36 → 172.16.42.255 TCP 66 80 → 51088 [FIN, ACK] Seq=13815 Ack=143 Win=66816 Len=0 TSval=2846449554 TSecr=1362504583
9879 14 0.113190 172.16.42.255 → 142.250.74.36 TCP 66 51088 → 80 [ACK] Seq=143 Ack=13816 Win=64128 Len=0 TSval=1362504595 TSecr=2846449554
9980 ```
81
82 # building from source
83 To build nsntrace from source the following steps are needed:
84
85 ```
86 $ ./autogen.sh
87 $ ./configure
88 $ make
89 ```
90 And to install:
91 ```
92 $ sudo make install
93 ```
94
95 ## dependencies
96 The packages needed to build nsntrace are (Debian/Ubuntu style naming):
97 * automake
98 * docbook-xml
99 * docbook-xsl
100 * iptables
101 * libnl-route-3-dev
102 * lippcap-dev
103 * pkg-config
104 * xsltproc
0 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 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.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
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 use pkg-config. -*- Autoconf -*-
23 # serial 12 (pkg-config-0.29.2)
24
25 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
27 dnl
28 dnl This program is free software; you can redistribute it and/or modify
29 dnl it under the terms of the GNU General Public License as published by
30 dnl the Free Software Foundation; either version 2 of the License, or
31 dnl (at your option) any later version.
32 dnl
33 dnl This program is distributed in the hope that it will be useful, but
34 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
35 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36 dnl General Public License for more details.
37 dnl
38 dnl You should have received a copy of the GNU General Public License
39 dnl along with this program; if not, write to the Free Software
40 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41 dnl 02111-1307, USA.
42 dnl
43 dnl As a special exception to the GNU General Public License, if you
44 dnl distribute this file as part of a program that contains a
45 dnl configuration script generated by Autoconf, you may include it under
46 dnl the same distribution terms that you use for the rest of that
47 dnl program.
48
49 dnl PKG_PREREQ(MIN-VERSION)
50 dnl -----------------------
51 dnl Since: 0.29
52 dnl
53 dnl Verify that the version of the pkg-config macros are at least
54 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
55 dnl installed version of pkg-config, this checks the developer's version
56 dnl of pkg.m4 when generating configure.
57 dnl
58 dnl To ensure that this macro is defined, also add:
59 dnl m4_ifndef([PKG_PREREQ],
60 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
61 dnl
62 dnl See the "Since" comment for each macro you use to see what version
63 dnl of the macros you require.
64 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29.2])
66 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
67 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
68 ])dnl PKG_PREREQ
69
70 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
71 dnl ----------------------------------
72 dnl Since: 0.16
73 dnl
74 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
75 dnl first found in the path. Checks that the version of pkg-config found
76 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
77 dnl used since that's the first version where most current features of
78 dnl pkg-config existed.
79 AC_DEFUN([PKG_PROG_PKG_CONFIG],
80 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
81 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
82 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
83 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
84 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
85 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
86
87 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
88 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
89 fi
90 if test -n "$PKG_CONFIG"; then
91 _pkg_min_version=m4_default([$1], [0.9.0])
92 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
93 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
94 AC_MSG_RESULT([yes])
95 else
96 AC_MSG_RESULT([no])
97 PKG_CONFIG=""
98 fi
99 fi[]dnl
100 ])dnl PKG_PROG_PKG_CONFIG
101
102 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
103 dnl -------------------------------------------------------------------
104 dnl Since: 0.18
105 dnl
106 dnl Check to see whether a particular set of modules exists. Similar to
107 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
108 dnl
109 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110 dnl only at the first occurrence in configure.ac, so if the first place
111 dnl it's called might be skipped (such as if it is within an "if", you
112 dnl have to call PKG_CHECK_EXISTS manually
113 AC_DEFUN([PKG_CHECK_EXISTS],
114 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
115 if test -n "$PKG_CONFIG" && \
116 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
117 m4_default([$2], [:])
118 m4_ifvaln([$3], [else
119 $3])dnl
120 fi])
121
122 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
123 dnl ---------------------------------------------
124 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
125 dnl pkg_failed based on the result.
126 m4_define([_PKG_CONFIG],
127 [if test -n "$$1"; then
128 pkg_cv_[]$1="$$1"
129 elif test -n "$PKG_CONFIG"; then
130 PKG_CHECK_EXISTS([$3],
131 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
132 test "x$?" != "x0" && pkg_failed=yes ],
133 [pkg_failed=yes])
134 else
135 pkg_failed=untried
136 fi[]dnl
137 ])dnl _PKG_CONFIG
138
139 dnl _PKG_SHORT_ERRORS_SUPPORTED
140 dnl ---------------------------
141 dnl Internal check to see if pkg-config supports short errors.
142 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
143 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
145 _pkg_short_errors_supported=yes
146 else
147 _pkg_short_errors_supported=no
148 fi[]dnl
149 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
150
151
152 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
153 dnl [ACTION-IF-NOT-FOUND])
154 dnl --------------------------------------------------------------
155 dnl Since: 0.4.0
156 dnl
157 dnl Note that if there is a possibility the first call to
158 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
159 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
160 AC_DEFUN([PKG_CHECK_MODULES],
161 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
162 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
163 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
164
165 pkg_failed=no
166 AC_MSG_CHECKING([for $2])
167
168 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
169 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
170
171 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
172 and $1[]_LIBS to avoid the need to call pkg-config.
173 See the pkg-config man page for more details.])
174
175 if test $pkg_failed = yes; then
176 AC_MSG_RESULT([no])
177 _PKG_SHORT_ERRORS_SUPPORTED
178 if test $_pkg_short_errors_supported = yes; then
179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
180 else
181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
182 fi
183 # Put the nasty error message in config.log where it belongs
184 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
185
186 m4_default([$4], [AC_MSG_ERROR(
187 [Package requirements ($2) were not met:
188
189 $$1_PKG_ERRORS
190
191 Consider adjusting the PKG_CONFIG_PATH environment variable if you
192 installed software in a non-standard prefix.
193
194 _PKG_TEXT])[]dnl
195 ])
196 elif test $pkg_failed = untried; then
197 AC_MSG_RESULT([no])
198 m4_default([$4], [AC_MSG_FAILURE(
199 [The pkg-config script could not be found or is too old. Make sure it
200 is in your PATH or set the PKG_CONFIG environment variable to the full
201 path to pkg-config.
202
203 _PKG_TEXT
204
205 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
206 ])
207 else
208 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
209 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
210 AC_MSG_RESULT([yes])
211 $3
212 fi[]dnl
213 ])dnl PKG_CHECK_MODULES
214
215
216 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
217 dnl [ACTION-IF-NOT-FOUND])
218 dnl ---------------------------------------------------------------------
219 dnl Since: 0.29
220 dnl
221 dnl Checks for existence of MODULES and gathers its build flags with
222 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
223 dnl and VARIABLE-PREFIX_LIBS from --libs.
224 dnl
225 dnl Note that if there is a possibility the first call to
226 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
227 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
228 dnl configure.ac.
229 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
230 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
231 _save_PKG_CONFIG=$PKG_CONFIG
232 PKG_CONFIG="$PKG_CONFIG --static"
233 PKG_CHECK_MODULES($@)
234 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
235 ])dnl PKG_CHECK_MODULES_STATIC
236
237
238 dnl PKG_INSTALLDIR([DIRECTORY])
239 dnl -------------------------
240 dnl Since: 0.27
241 dnl
242 dnl Substitutes the variable pkgconfigdir as the location where a module
243 dnl should install pkg-config .pc files. By default the directory is
244 dnl $libdir/pkgconfig, but the default can be changed by passing
245 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
246 dnl parameter.
247 AC_DEFUN([PKG_INSTALLDIR],
248 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
249 m4_pushdef([pkg_description],
250 [pkg-config installation directory @<:@]pkg_default[@:>@])
251 AC_ARG_WITH([pkgconfigdir],
252 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
253 [with_pkgconfigdir=]pkg_default)
254 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
255 m4_popdef([pkg_default])
256 m4_popdef([pkg_description])
257 ])dnl PKG_INSTALLDIR
258
259
260 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
261 dnl --------------------------------
262 dnl Since: 0.27
263 dnl
264 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
265 dnl module should install arch-independent pkg-config .pc files. By
266 dnl default the directory is $datadir/pkgconfig, but the default can be
267 dnl changed by passing DIRECTORY. The user can override through the
268 dnl --with-noarch-pkgconfigdir parameter.
269 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
270 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
271 m4_pushdef([pkg_description],
272 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
273 AC_ARG_WITH([noarch-pkgconfigdir],
274 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
275 [with_noarch_pkgconfigdir=]pkg_default)
276 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
277 m4_popdef([pkg_default])
278 m4_popdef([pkg_description])
279 ])dnl PKG_NOARCH_INSTALLDIR
280
281
282 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
283 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
284 dnl -------------------------------------------
285 dnl Since: 0.28
286 dnl
287 dnl Retrieves the value of the pkg-config variable for the given module.
288 AC_DEFUN([PKG_CHECK_VAR],
289 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
290 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
291
292 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
293 AS_VAR_COPY([$1], [pkg_cv_][$1])
294
295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296 ])dnl PKG_CHECK_VAR
297
298 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
299 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
300 dnl [DESCRIPTION], [DEFAULT])
301 dnl ------------------------------------------
302 dnl
303 dnl Prepare a "--with-" configure option using the lowercase
304 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
305 dnl PKG_CHECK_MODULES in a single macro.
306 AC_DEFUN([PKG_WITH_MODULES],
307 [
308 m4_pushdef([with_arg], m4_tolower([$1]))
309
310 m4_pushdef([description],
311 [m4_default([$5], [build with ]with_arg[ support])])
312
313 m4_pushdef([def_arg], [m4_default([$6], [auto])])
314 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
315 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
316
317 m4_case(def_arg,
318 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
319 [m4_pushdef([with_without],[--with-]with_arg)])
320
321 AC_ARG_WITH(with_arg,
322 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
323 [AS_TR_SH([with_]with_arg)=def_arg])
324
325 AS_CASE([$AS_TR_SH([with_]with_arg)],
326 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
327 [auto],[PKG_CHECK_MODULES([$1],[$2],
328 [m4_n([def_action_if_found]) $3],
329 [m4_n([def_action_if_not_found]) $4])])
330
331 m4_popdef([with_arg])
332 m4_popdef([description])
333 m4_popdef([def_arg])
334
335 ])dnl PKG_WITH_MODULES
336
337 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
338 dnl [DESCRIPTION], [DEFAULT])
339 dnl -----------------------------------------------
340 dnl
341 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
342 dnl check._[VARIABLE-PREFIX] is exported as make variable.
343 AC_DEFUN([PKG_HAVE_WITH_MODULES],
344 [
345 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
346
347 AM_CONDITIONAL([HAVE_][$1],
348 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
349 ])dnl PKG_HAVE_WITH_MODULES
350
351 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
352 dnl [DESCRIPTION], [DEFAULT])
353 dnl ------------------------------------------------------
354 dnl
355 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
356 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
357 dnl and preprocessor variable.
358 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
359 [
360 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
361
362 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
363 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
364 ])dnl PKG_HAVE_DEFINE_WITH_MODULES
365
366 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
367 #
368 # This file is free software; the Free Software Foundation
369 # gives unlimited permission to copy and/or distribute it,
370 # with or without modifications, as long as this notice is preserved.
371
372 # AM_AUTOMAKE_VERSION(VERSION)
373 # ----------------------------
374 # Automake X.Y traces this macro to ensure aclocal.m4 has been
375 # generated from the m4 files accompanying Automake X.Y.
376 # (This private macro should not be called outside this file.)
377 AC_DEFUN([AM_AUTOMAKE_VERSION],
378 [am__api_version='1.16'
379 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
380 dnl require some minimum version. Point them to the right macro.
381 m4_if([$1], [1.16.5], [],
382 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
383 ])
384
385 # _AM_AUTOCONF_VERSION(VERSION)
386 # -----------------------------
387 # aclocal traces this macro to find the Autoconf version.
388 # This is a private macro too. Using m4_define simplifies
389 # the logic in aclocal, which can simply ignore this definition.
390 m4_define([_AM_AUTOCONF_VERSION], [])
391
392 # AM_SET_CURRENT_AUTOMAKE_VERSION
393 # -------------------------------
394 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
395 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
396 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
397 [AM_AUTOMAKE_VERSION([1.16.5])dnl
398 m4_ifndef([AC_AUTOCONF_VERSION],
399 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
400 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
401
402 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
403
404 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
405 #
406 # This file is free software; the Free Software Foundation
407 # gives unlimited permission to copy and/or distribute it,
408 # with or without modifications, as long as this notice is preserved.
409
410 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
411 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
412 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
413 #
414 # Of course, Automake must honor this variable whenever it calls a
415 # tool from the auxiliary directory. The problem is that $srcdir (and
416 # therefore $ac_aux_dir as well) can be either absolute or relative,
417 # depending on how configure is run. This is pretty annoying, since
418 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
419 # source directory, any form will work fine, but in subdirectories a
420 # relative path needs to be adjusted first.
421 #
422 # $ac_aux_dir/missing
423 # fails when called from a subdirectory if $ac_aux_dir is relative
424 # $top_srcdir/$ac_aux_dir/missing
425 # fails if $ac_aux_dir is absolute,
426 # fails when called from a subdirectory in a VPATH build with
427 # a relative $ac_aux_dir
428 #
429 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
430 # are both prefixed by $srcdir. In an in-source build this is usually
431 # harmless because $srcdir is '.', but things will broke when you
432 # start a VPATH build or use an absolute $srcdir.
433 #
434 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
435 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
436 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
437 # and then we would define $MISSING as
438 # MISSING="\${SHELL} $am_aux_dir/missing"
439 # This will work as long as MISSING is not called from configure, because
440 # unfortunately $(top_srcdir) has no meaning in configure.
441 # However there are other variables, like CC, which are often used in
442 # configure, and could therefore not use this "fixed" $ac_aux_dir.
443 #
444 # Another solution, used here, is to always expand $ac_aux_dir to an
445 # absolute PATH. The drawback is that using absolute paths prevent a
446 # configured tree to be moved without reconfiguration.
447
448 AC_DEFUN([AM_AUX_DIR_EXPAND],
449 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
450 # Expand $ac_aux_dir to an absolute path.
451 am_aux_dir=`cd "$ac_aux_dir" && pwd`
452 ])
453
454 # AM_CONDITIONAL -*- Autoconf -*-
455
456 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
457 #
458 # This file is free software; the Free Software Foundation
459 # gives unlimited permission to copy and/or distribute it,
460 # with or without modifications, as long as this notice is preserved.
461
462 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
463 # -------------------------------------
464 # Define a conditional.
465 AC_DEFUN([AM_CONDITIONAL],
466 [AC_PREREQ([2.52])dnl
467 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
468 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
469 AC_SUBST([$1_TRUE])dnl
470 AC_SUBST([$1_FALSE])dnl
471 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
472 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
473 m4_define([_AM_COND_VALUE_$1], [$2])dnl
474 if $2; then
475 $1_TRUE=
476 $1_FALSE='#'
477 else
478 $1_TRUE='#'
479 $1_FALSE=
480 fi
481 AC_CONFIG_COMMANDS_PRE(
482 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
483 AC_MSG_ERROR([[conditional "$1" was never defined.
484 Usually this means the macro was only invoked conditionally.]])
485 fi])])
486
487 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
488 #
489 # This file is free software; the Free Software Foundation
490 # gives unlimited permission to copy and/or distribute it,
491 # with or without modifications, as long as this notice is preserved.
492
493
494 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
495 # written in clear, in which case automake, when reading aclocal.m4,
496 # will think it sees a *use*, and therefore will trigger all it's
497 # C support machinery. Also note that it means that autoscan, seeing
498 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
499
500
501 # _AM_DEPENDENCIES(NAME)
502 # ----------------------
503 # See how the compiler implements dependency checking.
504 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
505 # We try a few techniques and use that to set a single cache variable.
506 #
507 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
508 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
509 # dependency, and given that the user is not expected to run this macro,
510 # just rely on AC_PROG_CC.
511 AC_DEFUN([_AM_DEPENDENCIES],
512 [AC_REQUIRE([AM_SET_DEPDIR])dnl
513 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
514 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
515 AC_REQUIRE([AM_DEP_TRACK])dnl
516
517 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
518 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
519 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
520 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
521 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
522 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
523 [depcc="$$1" am_compiler_list=])
524
525 AC_CACHE_CHECK([dependency style of $depcc],
526 [am_cv_$1_dependencies_compiler_type],
527 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
528 # We make a subdir and do the tests there. Otherwise we can end up
529 # making bogus files that we don't know about and never remove. For
530 # instance it was reported that on HP-UX the gcc test will end up
531 # making a dummy file named 'D' -- because '-MD' means "put the output
532 # in D".
533 rm -rf conftest.dir
534 mkdir conftest.dir
535 # Copy depcomp to subdir because otherwise we won't find it if we're
536 # using a relative directory.
537 cp "$am_depcomp" conftest.dir
538 cd conftest.dir
539 # We will build objects and dependencies in a subdirectory because
540 # it helps to detect inapplicable dependency modes. For instance
541 # both Tru64's cc and ICC support -MD to output dependencies as a
542 # side effect of compilation, but ICC will put the dependencies in
543 # the current directory while Tru64 will put them in the object
544 # directory.
545 mkdir sub
546
547 am_cv_$1_dependencies_compiler_type=none
548 if test "$am_compiler_list" = ""; then
549 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
550 fi
551 am__universal=false
552 m4_case([$1], [CC],
553 [case " $depcc " in #(
554 *\ -arch\ *\ -arch\ *) am__universal=true ;;
555 esac],
556 [CXX],
557 [case " $depcc " in #(
558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
559 esac])
560
561 for depmode in $am_compiler_list; do
562 # Setup a source with many dependencies, because some compilers
563 # like to wrap large dependency lists on column 80 (with \), and
564 # we should not choose a depcomp mode which is confused by this.
565 #
566 # We need to recreate these files for each test, as the compiler may
567 # overwrite some of them when testing with obscure command lines.
568 # This happens at least with the AIX C compiler.
569 : > sub/conftest.c
570 for i in 1 2 3 4 5 6; do
571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
573 # Solaris 10 /bin/sh.
574 echo '/* dummy */' > sub/conftst$i.h
575 done
576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
577
578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
579 # mode. It turns out that the SunPro C++ compiler does not properly
580 # handle '-M -o', and we need to detect this. Also, some Intel
581 # versions had trouble with output in subdirs.
582 am__obj=sub/conftest.${OBJEXT-o}
583 am__minus_obj="-o $am__obj"
584 case $depmode in
585 gcc)
586 # This depmode causes a compiler race in universal mode.
587 test "$am__universal" = false || continue
588 ;;
589 nosideeffect)
590 # After this tag, mechanisms are not by side-effect, so they'll
591 # only be used when explicitly requested.
592 if test "x$enable_dependency_tracking" = xyes; then
593 continue
594 else
595 break
596 fi
597 ;;
598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
599 # This compiler won't grok '-c -o', but also, the minuso test has
600 # not run yet. These depmodes are late enough in the game, and
601 # so weak that their functioning should not be impacted.
602 am__obj=conftest.${OBJEXT-o}
603 am__minus_obj=
604 ;;
605 none) break ;;
606 esac
607 if depmode=$depmode \
608 source=sub/conftest.c object=$am__obj \
609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
611 >/dev/null 2>conftest.err &&
612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
616 # icc doesn't choke on unknown options, it will just issue warnings
617 # or remarks (even with -Werror). So we grep stderr for any message
618 # that says an option was ignored or not supported.
619 # When given -MP, icc 7.0 and 7.1 complain thusly:
620 # icc: Command line warning: ignoring option '-M'; no argument required
621 # The diagnosis changed in icc 8.0:
622 # icc: Command line remark: option '-MP' not supported
623 if (grep 'ignoring option' conftest.err ||
624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
625 am_cv_$1_dependencies_compiler_type=$depmode
626 break
627 fi
628 fi
629 done
630
631 cd ..
632 rm -rf conftest.dir
633 else
634 am_cv_$1_dependencies_compiler_type=none
635 fi
636 ])
637 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
638 AM_CONDITIONAL([am__fastdep$1], [
639 test "x$enable_dependency_tracking" != xno \
640 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
641 ])
642
643
644 # AM_SET_DEPDIR
645 # -------------
646 # Choose a directory name for dependency files.
647 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
648 AC_DEFUN([AM_SET_DEPDIR],
649 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
650 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
651 ])
652
653
654 # AM_DEP_TRACK
655 # ------------
656 AC_DEFUN([AM_DEP_TRACK],
657 [AC_ARG_ENABLE([dependency-tracking], [dnl
658 AS_HELP_STRING(
659 [--enable-dependency-tracking],
660 [do not reject slow dependency extractors])
661 AS_HELP_STRING(
662 [--disable-dependency-tracking],
663 [speeds up one-time build])])
664 if test "x$enable_dependency_tracking" != xno; then
665 am_depcomp="$ac_aux_dir/depcomp"
666 AMDEPBACKSLASH='\'
667 am__nodep='_no'
668 fi
669 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
670 AC_SUBST([AMDEPBACKSLASH])dnl
671 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
672 AC_SUBST([am__nodep])dnl
673 _AM_SUBST_NOTMAKE([am__nodep])dnl
674 ])
675
676 # Generate code to set up dependency tracking. -*- Autoconf -*-
677
678 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
679 #
680 # This file is free software; the Free Software Foundation
681 # gives unlimited permission to copy and/or distribute it,
682 # with or without modifications, as long as this notice is preserved.
683
684 # _AM_OUTPUT_DEPENDENCY_COMMANDS
685 # ------------------------------
686 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
687 [{
688 # Older Autoconf quotes --file arguments for eval, but not when files
689 # are listed without --file. Let's play safe and only enable the eval
690 # if we detect the quoting.
691 # TODO: see whether this extra hack can be removed once we start
692 # requiring Autoconf 2.70 or later.
693 AS_CASE([$CONFIG_FILES],
694 [*\'*], [eval set x "$CONFIG_FILES"],
695 [*], [set x $CONFIG_FILES])
696 shift
697 # Used to flag and report bootstrapping failures.
698 am_rc=0
699 for am_mf
700 do
701 # Strip MF so we end up with the name of the file.
702 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
703 # Check whether this is an Automake generated Makefile which includes
704 # dependency-tracking related rules and includes.
705 # Grep'ing the whole file directly is not great: AIX grep has a line
706 # limit of 2048, but all sed's we know have understand at least 4000.
707 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
708 || continue
709 am_dirpart=`AS_DIRNAME(["$am_mf"])`
710 am_filepart=`AS_BASENAME(["$am_mf"])`
711 AM_RUN_LOG([cd "$am_dirpart" \
712 && sed -e '/# am--include-marker/d' "$am_filepart" \
713 | $MAKE -f - am--depfiles]) || am_rc=$?
714 done
715 if test $am_rc -ne 0; then
716 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
717 for automatic dependency tracking. If GNU make was not used, consider
718 re-running the configure script with MAKE="gmake" (or whatever is
719 necessary). You can also try re-running configure with the
720 '--disable-dependency-tracking' option to at least be able to build
721 the package (albeit without support for automatic dependency tracking).])
722 fi
723 AS_UNSET([am_dirpart])
724 AS_UNSET([am_filepart])
725 AS_UNSET([am_mf])
726 AS_UNSET([am_rc])
727 rm -f conftest-deps.mk
728 }
729 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
730
731
732 # AM_OUTPUT_DEPENDENCY_COMMANDS
733 # -----------------------------
734 # This macro should only be invoked once -- use via AC_REQUIRE.
735 #
736 # This code is only required when automatic dependency tracking is enabled.
737 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
738 # order to bootstrap the dependency handling code.
739 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
740 [AC_CONFIG_COMMANDS([depfiles],
741 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
742 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
743
744 # Do all the work for Automake. -*- Autoconf -*-
745
746 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
747 #
748 # This file is free software; the Free Software Foundation
749 # gives unlimited permission to copy and/or distribute it,
750 # with or without modifications, as long as this notice is preserved.
751
752 # This macro actually does too much. Some checks are only needed if
753 # your package does certain things. But this isn't really a big deal.
754
755 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
756 m4_define([AC_PROG_CC],
757 m4_defn([AC_PROG_CC])
758 [_AM_PROG_CC_C_O
759 ])
760
761 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
762 # AM_INIT_AUTOMAKE([OPTIONS])
763 # -----------------------------------------------
764 # The call with PACKAGE and VERSION arguments is the old style
765 # call (pre autoconf-2.50), which is being phased out. PACKAGE
766 # and VERSION should now be passed to AC_INIT and removed from
767 # the call to AM_INIT_AUTOMAKE.
768 # We support both call styles for the transition. After
769 # the next Automake release, Autoconf can make the AC_INIT
770 # arguments mandatory, and then we can depend on a new Autoconf
771 # release and drop the old call support.
772 AC_DEFUN([AM_INIT_AUTOMAKE],
773 [AC_PREREQ([2.65])dnl
774 m4_ifdef([_$0_ALREADY_INIT],
775 [m4_fatal([$0 expanded multiple times
776 ]m4_defn([_$0_ALREADY_INIT]))],
777 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
778 dnl Autoconf wants to disallow AM_ names. We explicitly allow
779 dnl the ones we care about.
780 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
781 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
782 AC_REQUIRE([AC_PROG_INSTALL])dnl
783 if test "`cd $srcdir && pwd`" != "`pwd`"; then
784 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
785 # is not polluted with repeated "-I."
786 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
787 # test to see if srcdir already configured
788 if test -f $srcdir/config.status; then
789 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
790 fi
791 fi
792
793 # test whether we have cygpath
794 if test -z "$CYGPATH_W"; then
795 if (cygpath --version) >/dev/null 2>/dev/null; then
796 CYGPATH_W='cygpath -w'
797 else
798 CYGPATH_W=echo
799 fi
800 fi
801 AC_SUBST([CYGPATH_W])
802
803 # Define the identity of the package.
804 dnl Distinguish between old-style and new-style calls.
805 m4_ifval([$2],
806 [AC_DIAGNOSE([obsolete],
807 [$0: two- and three-arguments forms are deprecated.])
808 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
809 AC_SUBST([PACKAGE], [$1])dnl
810 AC_SUBST([VERSION], [$2])],
811 [_AM_SET_OPTIONS([$1])dnl
812 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
813 m4_if(
814 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
815 [ok:ok],,
816 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
817 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
818 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
819
820 _AM_IF_OPTION([no-define],,
821 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
822 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
823
824 # Some tools Automake needs.
825 AC_REQUIRE([AM_SANITY_CHECK])dnl
826 AC_REQUIRE([AC_ARG_PROGRAM])dnl
827 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
828 AM_MISSING_PROG([AUTOCONF], [autoconf])
829 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
830 AM_MISSING_PROG([AUTOHEADER], [autoheader])
831 AM_MISSING_PROG([MAKEINFO], [makeinfo])
832 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
833 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
834 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
835 # For better backward compatibility. To be removed once Automake 1.9.x
836 # dies out for good. For more background, see:
837 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
838 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
839 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
840 # We need awk for the "check" target (and possibly the TAP driver). The
841 # system "awk" is bad on some platforms.
842 AC_REQUIRE([AC_PROG_AWK])dnl
843 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
844 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
845 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
846 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
847 [_AM_PROG_TAR([v7])])])
848 _AM_IF_OPTION([no-dependencies],,
849 [AC_PROVIDE_IFELSE([AC_PROG_CC],
850 [_AM_DEPENDENCIES([CC])],
851 [m4_define([AC_PROG_CC],
852 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
853 AC_PROVIDE_IFELSE([AC_PROG_CXX],
854 [_AM_DEPENDENCIES([CXX])],
855 [m4_define([AC_PROG_CXX],
856 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
857 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
858 [_AM_DEPENDENCIES([OBJC])],
859 [m4_define([AC_PROG_OBJC],
860 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
861 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
862 [_AM_DEPENDENCIES([OBJCXX])],
863 [m4_define([AC_PROG_OBJCXX],
864 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
865 ])
866 # Variables for tags utilities; see am/tags.am
867 if test -z "$CTAGS"; then
868 CTAGS=ctags
869 fi
870 AC_SUBST([CTAGS])
871 if test -z "$ETAGS"; then
872 ETAGS=etags
873 fi
874 AC_SUBST([ETAGS])
875 if test -z "$CSCOPE"; then
876 CSCOPE=cscope
877 fi
878 AC_SUBST([CSCOPE])
879
880 AC_REQUIRE([AM_SILENT_RULES])dnl
881 dnl The testsuite driver may need to know about EXEEXT, so add the
882 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
883 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
884 AC_CONFIG_COMMANDS_PRE(dnl
885 [m4_provide_if([_AM_COMPILER_EXEEXT],
886 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
887
888 # POSIX will say in a future version that running "rm -f" with no argument
889 # is OK; and we want to be able to make that assumption in our Makefile
890 # recipes. So use an aggressive probe to check that the usage we want is
891 # actually supported "in the wild" to an acceptable degree.
892 # See automake bug#10828.
893 # To make any issue more visible, cause the running configure to be aborted
894 # by default if the 'rm' program in use doesn't match our expectations; the
895 # user can still override this though.
896 if rm -f && rm -fr && rm -rf; then : OK; else
897 cat >&2 <<'END'
898 Oops!
899
900 Your 'rm' program seems unable to run without file operands specified
901 on the command line, even when the '-f' option is present. This is contrary
902 to the behaviour of most rm programs out there, and not conforming with
903 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
904
905 Please tell bug-automake@gnu.org about your system, including the value
906 of your $PATH and any error possibly output before this message. This
907 can help us improve future automake versions.
908
909 END
910 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
911 echo 'Configuration will proceed anyway, since you have set the' >&2
912 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
913 echo >&2
914 else
915 cat >&2 <<'END'
916 Aborting the configuration process, to ensure you take notice of the issue.
917
918 You can download and install GNU coreutils to get an 'rm' implementation
919 that behaves properly: <https://www.gnu.org/software/coreutils/>.
920
921 If you want to complete the configuration process using your problematic
922 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
923 to "yes", and re-run configure.
924
925 END
926 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
927 fi
928 fi
929 dnl The trailing newline in this macro's definition is deliberate, for
930 dnl backward compatibility and to allow trailing 'dnl'-style comments
931 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
932 ])
933
934 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
935 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
936 dnl mangled by Autoconf and run in a shell conditional statement.
937 m4_define([_AC_COMPILER_EXEEXT],
938 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
939
940 # When config.status generates a header, we must update the stamp-h file.
941 # This file resides in the same directory as the config header
942 # that is generated. The stamp files are numbered to have different names.
943
944 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
945 # loop where config.status creates the headers, so we can generate
946 # our stamp files there.
947 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
948 [# Compute $1's index in $config_headers.
949 _am_arg=$1
950 _am_stamp_count=1
951 for _am_header in $config_headers :; do
952 case $_am_header in
953 $_am_arg | $_am_arg:* )
954 break ;;
955 * )
956 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
957 esac
958 done
959 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
960
961 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
962 #
963 # This file is free software; the Free Software Foundation
964 # gives unlimited permission to copy and/or distribute it,
965 # with or without modifications, as long as this notice is preserved.
966
967 # AM_PROG_INSTALL_SH
968 # ------------------
969 # Define $install_sh.
970 AC_DEFUN([AM_PROG_INSTALL_SH],
971 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
972 if test x"${install_sh+set}" != xset; then
973 case $am_aux_dir in
974 *\ * | *\ *)
975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
976 *)
977 install_sh="\${SHELL} $am_aux_dir/install-sh"
978 esac
979 fi
980 AC_SUBST([install_sh])])
981
982 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
983 #
984 # This file is free software; the Free Software Foundation
985 # gives unlimited permission to copy and/or distribute it,
986 # with or without modifications, as long as this notice is preserved.
987
988 # Check whether the underlying file-system supports filenames
989 # with a leading dot. For instance MS-DOS doesn't.
990 AC_DEFUN([AM_SET_LEADING_DOT],
991 [rm -rf .tst 2>/dev/null
992 mkdir .tst 2>/dev/null
993 if test -d .tst; then
994 am__leading_dot=.
995 else
996 am__leading_dot=_
997 fi
998 rmdir .tst 2>/dev/null
999 AC_SUBST([am__leading_dot])])
1000
1001 # Check to see how 'make' treats includes. -*- Autoconf -*-
1002
1003 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1004 #
1005 # This file is free software; the Free Software Foundation
1006 # gives unlimited permission to copy and/or distribute it,
1007 # with or without modifications, as long as this notice is preserved.
1008
1009 # AM_MAKE_INCLUDE()
1010 # -----------------
1011 # Check whether make has an 'include' directive that can support all
1012 # the idioms we need for our automatic dependency tracking code.
1013 AC_DEFUN([AM_MAKE_INCLUDE],
1014 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1015 cat > confinc.mk << 'END'
1016 am__doit:
1017 @echo this is the am__doit target >confinc.out
1018 .PHONY: am__doit
1019 END
1020 am__include="#"
1021 am__quote=
1022 # BSD make does it like this.
1023 echo '.include "confinc.mk" # ignored' > confmf.BSD
1024 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1025 echo 'include confinc.mk # ignored' > confmf.GNU
1026 _am_result=no
1027 for s in GNU BSD; do
1028 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1029 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1030 ['0:this is the am__doit target'],
1031 [AS_CASE([$s],
1032 [BSD], [am__include='.include' am__quote='"'],
1033 [am__include='include' am__quote=''])])
1034 if test "$am__include" != "#"; then
1035 _am_result="yes ($s style)"
1036 break
1037 fi
1038 done
1039 rm -f confinc.* confmf.*
1040 AC_MSG_RESULT([${_am_result}])
1041 AC_SUBST([am__include])])
1042 AC_SUBST([am__quote])])
1043
1044 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1045
1046 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
1047 #
1048 # This file is free software; the Free Software Foundation
1049 # gives unlimited permission to copy and/or distribute it,
1050 # with or without modifications, as long as this notice is preserved.
1051
1052 # AM_MISSING_PROG(NAME, PROGRAM)
1053 # ------------------------------
1054 AC_DEFUN([AM_MISSING_PROG],
1055 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1056 $1=${$1-"${am_missing_run}$2"}
1057 AC_SUBST($1)])
1058
1059 # AM_MISSING_HAS_RUN
1060 # ------------------
1061 # Define MISSING if not defined so far and test if it is modern enough.
1062 # If it is, set am_missing_run to use it, otherwise, to nothing.
1063 AC_DEFUN([AM_MISSING_HAS_RUN],
1064 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1065 AC_REQUIRE_AUX_FILE([missing])dnl
1066 if test x"${MISSING+set}" != xset; then
1067 MISSING="\${SHELL} '$am_aux_dir/missing'"
1068 fi
1069 # Use eval to expand $SHELL
1070 if eval "$MISSING --is-lightweight"; then
1071 am_missing_run="$MISSING "
1072 else
1073 am_missing_run=
1074 AC_MSG_WARN(['missing' script is too old or missing])
1075 fi
1076 ])
1077
1078 # Helper functions for option handling. -*- Autoconf -*-
1079
1080 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1081 #
1082 # This file is free software; the Free Software Foundation
1083 # gives unlimited permission to copy and/or distribute it,
1084 # with or without modifications, as long as this notice is preserved.
1085
1086 # _AM_MANGLE_OPTION(NAME)
1087 # -----------------------
1088 AC_DEFUN([_AM_MANGLE_OPTION],
1089 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1090
1091 # _AM_SET_OPTION(NAME)
1092 # --------------------
1093 # Set option NAME. Presently that only means defining a flag for this option.
1094 AC_DEFUN([_AM_SET_OPTION],
1095 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1096
1097 # _AM_SET_OPTIONS(OPTIONS)
1098 # ------------------------
1099 # OPTIONS is a space-separated list of Automake options.
1100 AC_DEFUN([_AM_SET_OPTIONS],
1101 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1102
1103 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1104 # -------------------------------------------
1105 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1106 AC_DEFUN([_AM_IF_OPTION],
1107 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1108
1109 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1110 #
1111 # This file is free software; the Free Software Foundation
1112 # gives unlimited permission to copy and/or distribute it,
1113 # with or without modifications, as long as this notice is preserved.
1114
1115 # _AM_PROG_CC_C_O
1116 # ---------------
1117 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1118 # to automatically call this.
1119 AC_DEFUN([_AM_PROG_CC_C_O],
1120 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1121 AC_REQUIRE_AUX_FILE([compile])dnl
1122 AC_LANG_PUSH([C])dnl
1123 AC_CACHE_CHECK(
1124 [whether $CC understands -c and -o together],
1125 [am_cv_prog_cc_c_o],
1126 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1127 # Make sure it works both with $CC and with simple cc.
1128 # Following AC_PROG_CC_C_O, we do the test twice because some
1129 # compilers refuse to overwrite an existing .o file with -o,
1130 # though they will create one.
1131 am_cv_prog_cc_c_o=yes
1132 for am_i in 1 2; do
1133 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1134 && test -f conftest2.$ac_objext; then
1135 : OK
1136 else
1137 am_cv_prog_cc_c_o=no
1138 break
1139 fi
1140 done
1141 rm -f core conftest*
1142 unset am_i])
1143 if test "$am_cv_prog_cc_c_o" != yes; then
1144 # Losing compiler, so override with the script.
1145 # FIXME: It is wrong to rewrite CC.
1146 # But if we don't then we get into trouble of one sort or another.
1147 # A longer-term fix would be to have automake use am__CC in this case,
1148 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1149 CC="$am_aux_dir/compile $CC"
1150 fi
1151 AC_LANG_POP([C])])
1152
1153 # For backward compatibility.
1154 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1155
1156 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1157 #
1158 # This file is free software; the Free Software Foundation
1159 # gives unlimited permission to copy and/or distribute it,
1160 # with or without modifications, as long as this notice is preserved.
1161
1162 # AM_RUN_LOG(COMMAND)
1163 # -------------------
1164 # Run COMMAND, save the exit status in ac_status, and log it.
1165 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1166 AC_DEFUN([AM_RUN_LOG],
1167 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1168 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1169 ac_status=$?
1170 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1171 (exit $ac_status); }])
1172
1173 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1174
1175 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1176 #
1177 # This file is free software; the Free Software Foundation
1178 # gives unlimited permission to copy and/or distribute it,
1179 # with or without modifications, as long as this notice is preserved.
1180
1181 # AM_SANITY_CHECK
1182 # ---------------
1183 AC_DEFUN([AM_SANITY_CHECK],
1184 [AC_MSG_CHECKING([whether build environment is sane])
1185 # Reject unsafe characters in $srcdir or the absolute working directory
1186 # name. Accept space and tab only in the latter.
1187 am_lf='
1188 '
1189 case `pwd` in
1190 *[[\\\"\#\$\&\'\`$am_lf]]*)
1191 AC_MSG_ERROR([unsafe absolute working directory name]);;
1192 esac
1193 case $srcdir in
1194 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1195 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1196 esac
1197
1198 # Do 'set' in a subshell so we don't clobber the current shell's
1199 # arguments. Must try -L first in case configure is actually a
1200 # symlink; some systems play weird games with the mod time of symlinks
1201 # (eg FreeBSD returns the mod time of the symlink's containing
1202 # directory).
1203 if (
1204 am_has_slept=no
1205 for am_try in 1 2; do
1206 echo "timestamp, slept: $am_has_slept" > conftest.file
1207 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1208 if test "$[*]" = "X"; then
1209 # -L didn't work.
1210 set X `ls -t "$srcdir/configure" conftest.file`
1211 fi
1212 if test "$[*]" != "X $srcdir/configure conftest.file" \
1213 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1214
1215 # If neither matched, then we have a broken ls. This can happen
1216 # if, for instance, CONFIG_SHELL is bash and it inherits a
1217 # broken ls alias from the environment. This has actually
1218 # happened. Such a system could not be considered "sane".
1219 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1220 alias in your environment])
1221 fi
1222 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1223 break
1224 fi
1225 # Just in case.
1226 sleep 1
1227 am_has_slept=yes
1228 done
1229 test "$[2]" = conftest.file
1230 )
1231 then
1232 # Ok.
1233 :
1234 else
1235 AC_MSG_ERROR([newly created file is older than distributed files!
1236 Check your system clock])
1237 fi
1238 AC_MSG_RESULT([yes])
1239 # If we didn't sleep, we still need to ensure time stamps of config.status and
1240 # generated files are strictly newer.
1241 am_sleep_pid=
1242 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1243 ( sleep 1 ) &
1244 am_sleep_pid=$!
1245 fi
1246 AC_CONFIG_COMMANDS_PRE(
1247 [AC_MSG_CHECKING([that generated files are newer than configure])
1248 if test -n "$am_sleep_pid"; then
1249 # Hide warnings about reused PIDs.
1250 wait $am_sleep_pid 2>/dev/null
1251 fi
1252 AC_MSG_RESULT([done])])
1253 rm -f conftest.file
1254 ])
1255
1256 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
1257 #
1258 # This file is free software; the Free Software Foundation
1259 # gives unlimited permission to copy and/or distribute it,
1260 # with or without modifications, as long as this notice is preserved.
1261
1262 # AM_SILENT_RULES([DEFAULT])
1263 # --------------------------
1264 # Enable less verbose build rules; with the default set to DEFAULT
1265 # ("yes" being less verbose, "no" or empty being verbose).
1266 AC_DEFUN([AM_SILENT_RULES],
1267 [AC_ARG_ENABLE([silent-rules], [dnl
1268 AS_HELP_STRING(
1269 [--enable-silent-rules],
1270 [less verbose build output (undo: "make V=1")])
1271 AS_HELP_STRING(
1272 [--disable-silent-rules],
1273 [verbose build output (undo: "make V=0")])dnl
1274 ])
1275 case $enable_silent_rules in @%:@ (((
1276 yes) AM_DEFAULT_VERBOSITY=0;;
1277 no) AM_DEFAULT_VERBOSITY=1;;
1278 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1279 esac
1280 dnl
1281 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1282 dnl do not support nested variable expansions.
1283 dnl See automake bug#9928 and bug#10237.
1284 am_make=${MAKE-make}
1285 AC_CACHE_CHECK([whether $am_make supports nested variables],
1286 [am_cv_make_support_nested_variables],
1287 [if AS_ECHO([['TRUE=$(BAR$(V))
1288 BAR0=false
1289 BAR1=true
1290 V=1
1291 am__doit:
1292 @$(TRUE)
1293 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1294 am_cv_make_support_nested_variables=yes
1295 else
1296 am_cv_make_support_nested_variables=no
1297 fi])
1298 if test $am_cv_make_support_nested_variables = yes; then
1299 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1300 AM_V='$(V)'
1301 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1302 else
1303 AM_V=$AM_DEFAULT_VERBOSITY
1304 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1305 fi
1306 AC_SUBST([AM_V])dnl
1307 AM_SUBST_NOTMAKE([AM_V])dnl
1308 AC_SUBST([AM_DEFAULT_V])dnl
1309 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1310 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1311 AM_BACKSLASH='\'
1312 AC_SUBST([AM_BACKSLASH])dnl
1313 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1314 ])
1315
1316 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1317 #
1318 # This file is free software; the Free Software Foundation
1319 # gives unlimited permission to copy and/or distribute it,
1320 # with or without modifications, as long as this notice is preserved.
1321
1322 # AM_PROG_INSTALL_STRIP
1323 # ---------------------
1324 # One issue with vendor 'install' (even GNU) is that you can't
1325 # specify the program used to strip binaries. This is especially
1326 # annoying in cross-compiling environments, where the build's strip
1327 # is unlikely to handle the host's binaries.
1328 # Fortunately install-sh will honor a STRIPPROG variable, so we
1329 # always use install-sh in "make install-strip", and initialize
1330 # STRIPPROG with the value of the STRIP variable (set by the user).
1331 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1332 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1333 # Installed binaries are usually stripped using 'strip' when the user
1334 # run "make install-strip". However 'strip' might not be the right
1335 # tool to use in cross-compilation environments, therefore Automake
1336 # will honor the 'STRIP' environment variable to overrule this program.
1337 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1338 if test "$cross_compiling" != no; then
1339 AC_CHECK_TOOL([STRIP], [strip], :)
1340 fi
1341 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1342 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1343
1344 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
1345 #
1346 # This file is free software; the Free Software Foundation
1347 # gives unlimited permission to copy and/or distribute it,
1348 # with or without modifications, as long as this notice is preserved.
1349
1350 # _AM_SUBST_NOTMAKE(VARIABLE)
1351 # ---------------------------
1352 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1353 # This macro is traced by Automake.
1354 AC_DEFUN([_AM_SUBST_NOTMAKE])
1355
1356 # AM_SUBST_NOTMAKE(VARIABLE)
1357 # --------------------------
1358 # Public sister of _AM_SUBST_NOTMAKE.
1359 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1360
1361 # Check how to create a tarball. -*- Autoconf -*-
1362
1363 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
1364 #
1365 # This file is free software; the Free Software Foundation
1366 # gives unlimited permission to copy and/or distribute it,
1367 # with or without modifications, as long as this notice is preserved.
1368
1369 # _AM_PROG_TAR(FORMAT)
1370 # --------------------
1371 # Check how to create a tarball in format FORMAT.
1372 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1373 #
1374 # Substitute a variable $(am__tar) that is a command
1375 # writing to stdout a FORMAT-tarball containing the directory
1376 # $tardir.
1377 # tardir=directory && $(am__tar) > result.tar
1378 #
1379 # Substitute a variable $(am__untar) that extract such
1380 # a tarball read from stdin.
1381 # $(am__untar) < result.tar
1382 #
1383 AC_DEFUN([_AM_PROG_TAR],
1384 [# Always define AMTAR for backward compatibility. Yes, it's still used
1385 # in the wild :-( We should find a proper way to deprecate it ...
1386 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1387
1388 # We'll loop over all known methods to create a tar archive until one works.
1389 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1390
1391 m4_if([$1], [v7],
1392 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1393
1394 [m4_case([$1],
1395 [ustar],
1396 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1397 # There is notably a 21 bits limit for the UID and the GID. In fact,
1398 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1399 # and bug#13588).
1400 am_max_uid=2097151 # 2^21 - 1
1401 am_max_gid=$am_max_uid
1402 # The $UID and $GID variables are not portable, so we need to resort
1403 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1404 # below are definitely unexpected, so allow the users to see them
1405 # (that is, avoid stderr redirection).
1406 am_uid=`id -u || echo unknown`
1407 am_gid=`id -g || echo unknown`
1408 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1409 if test $am_uid -le $am_max_uid; then
1410 AC_MSG_RESULT([yes])
1411 else
1412 AC_MSG_RESULT([no])
1413 _am_tools=none
1414 fi
1415 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1416 if test $am_gid -le $am_max_gid; then
1417 AC_MSG_RESULT([yes])
1418 else
1419 AC_MSG_RESULT([no])
1420 _am_tools=none
1421 fi],
1422
1423 [pax],
1424 [],
1425
1426 [m4_fatal([Unknown tar format])])
1427
1428 AC_MSG_CHECKING([how to create a $1 tar archive])
1429
1430 # Go ahead even if we have the value already cached. We do so because we
1431 # need to set the values for the 'am__tar' and 'am__untar' variables.
1432 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1433
1434 for _am_tool in $_am_tools; do
1435 case $_am_tool in
1436 gnutar)
1437 for _am_tar in tar gnutar gtar; do
1438 AM_RUN_LOG([$_am_tar --version]) && break
1439 done
1440 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1441 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1442 am__untar="$_am_tar -xf -"
1443 ;;
1444 plaintar)
1445 # Must skip GNU tar: if it does not support --format= it doesn't create
1446 # ustar tarball either.
1447 (tar --version) >/dev/null 2>&1 && continue
1448 am__tar='tar chf - "$$tardir"'
1449 am__tar_='tar chf - "$tardir"'
1450 am__untar='tar xf -'
1451 ;;
1452 pax)
1453 am__tar='pax -L -x $1 -w "$$tardir"'
1454 am__tar_='pax -L -x $1 -w "$tardir"'
1455 am__untar='pax -r'
1456 ;;
1457 cpio)
1458 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1459 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1460 am__untar='cpio -i -H $1 -d'
1461 ;;
1462 none)
1463 am__tar=false
1464 am__tar_=false
1465 am__untar=false
1466 ;;
1467 esac
1468
1469 # If the value was cached, stop now. We just wanted to have am__tar
1470 # and am__untar set.
1471 test -n "${am_cv_prog_tar_$1}" && break
1472
1473 # tar/untar a dummy directory, and stop if the command works.
1474 rm -rf conftest.dir
1475 mkdir conftest.dir
1476 echo GrepMe > conftest.dir/file
1477 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1478 rm -rf conftest.dir
1479 if test -s conftest.tar; then
1480 AM_RUN_LOG([$am__untar <conftest.tar])
1481 AM_RUN_LOG([cat conftest.dir/file])
1482 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1483 fi
1484 done
1485 rm -rf conftest.dir
1486
1487 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1488 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1489
1490 AC_SUBST([am__tar])
1491 AC_SUBST([am__untar])
1492 ]) # _AM_PROG_TAR
1493
+0
-4
autogen.sh less more
0 #!/bin/sh
1 aclocal \
2 && autoreconf --install \
3 && automake --add-missing
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN* | MSYS*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/* | msys/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
259 func_cl_wrapper "$@" # Doesn't return...
260 ;;
261 esac
262
263 ofile=
264 cfile=
265
266 for arg
267 do
268 if test -n "$eat"; then
269 eat=
270 else
271 case $1 in
272 -o)
273 # configure might choose to run compile as 'compile cc -o foo foo.c'.
274 # So we strip '-o arg' only if arg is an object.
275 eat=1
276 case $2 in
277 *.o | *.obj)
278 ofile=$2
279 ;;
280 *)
281 set x "$@" -o "$2"
282 shift
283 ;;
284 esac
285 ;;
286 *.c)
287 cfile=$1
288 set x "$@" "$1"
289 shift
290 ;;
291 *)
292 set x "$@" "$1"
293 shift
294 ;;
295 esac
296 fi
297 shift
298 done
299
300 if test -z "$ofile" || test -z "$cfile"; then
301 # If no '-o' option was seen then we might have been invoked from a
302 # pattern rule where we don't need one. That is ok -- this is a
303 # normal compilation that the losing compiler can handle. If no
304 # '.c' file was seen then we are probably linking. That is also
305 # ok.
306 exec "$@"
307 fi
308
309 # Name of file we expect compiler to create.
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311
312 # Create the lock directory.
313 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
314 # that we are using for the .o file. Also, base the name on the expected
315 # object file name, since that is what matters with a parallel build.
316 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317 while true; do
318 if mkdir "$lockdir" >/dev/null 2>&1; then
319 break
320 fi
321 sleep 1
322 done
323 # FIXME: race condition here if user kills between mkdir and trap.
324 trap "rmdir '$lockdir'; exit 1" 1 2 15
325
326 # Run the compile.
327 "$@"
328 ret=$?
329
330 if test -f "$cofile"; then
331 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332 elif test -f "${cofile}bj"; then
333 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334 fi
335
336 rmdir "$lockdir"
337 exit $ret
338
339 # Local Variables:
340 # mode: shell-script
341 # sh-indentation: 2
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343 # time-stamp-start: "scriptversion="
344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345 # time-stamp-time-zone: "UTC0"
346 # time-stamp-end: "; # UTC"
347 # End:
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to 1 if you have the <inttypes.h> header file. */
3 #undef HAVE_INTTYPES_H
4
5 /* Define to 1 if you have the `pcap' library (-lpcap). */
6 #undef HAVE_LIBPCAP
7
8 /* Define to 1 if you have the <pcap/pcap.h> header file. */
9 #undef HAVE_PCAP_PCAP_H
10
11 /* Define to 1 if you have the <stdint.h> header file. */
12 #undef HAVE_STDINT_H
13
14 /* Define to 1 if you have the <stdio.h> header file. */
15 #undef HAVE_STDIO_H
16
17 /* Define to 1 if you have the <stdlib.h> header file. */
18 #undef HAVE_STDLIB_H
19
20 /* Define to 1 if you have the <strings.h> header file. */
21 #undef HAVE_STRINGS_H
22
23 /* Define to 1 if you have the <string.h> header file. */
24 #undef HAVE_STRING_H
25
26 /* Define to 1 if you have the <sys/stat.h> header file. */
27 #undef HAVE_SYS_STAT_H
28
29 /* Define to 1 if you have the <sys/types.h> header file. */
30 #undef HAVE_SYS_TYPES_H
31
32 /* Define to 1 if you have the <unistd.h> header file. */
33 #undef HAVE_UNISTD_H
34
35 /* Name of package */
36 #undef PACKAGE
37
38 /* Define to the address where bug reports for this package should be sent. */
39 #undef PACKAGE_BUGREPORT
40
41 /* Define to the full name of this package. */
42 #undef PACKAGE_NAME
43
44 /* Define to the full name and version of this package. */
45 #undef PACKAGE_STRING
46
47 /* Define to the one symbol short name of this package. */
48 #undef PACKAGE_TARNAME
49
50 /* Define to the home page for this package. */
51 #undef PACKAGE_URL
52
53 /* Define to the version of this package. */
54 #undef PACKAGE_VERSION
55
56 /* Define to 1 if all of the C90 standard headers exist (not just the ones
57 required in a freestanding environment). This macro is provided for
58 backward compatibility; new code need not use it. */
59 #undef STDC_HEADERS
60
61 /* Version number of package */
62 #undef VERSION
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.71 for nsntrace 4.
3 #
4 # Report bugs to <https://github.com/jonasdn/nsntrace/issues>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else $as_nop
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
47 '
48 export as_nl
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed `exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
138 fi
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else \$as_nop
152 case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac
158 fi
159 "
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
165
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
175 exitcode=1; echo positional parameters were not saved.
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
269 $0: https://github.com/jonasdn/nsntrace/issues about your
270 $0: system, including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314 # as_fn_nop
315 # ---------
316 # Do nothing but, unlike ":", preserve the value of $?.
317 as_fn_nop ()
318 {
319 return $?
320 }
321 as_nop=as_fn_nop
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 printf "%s\n" X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else $as_nop
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else $as_nop
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415 # as_fn_nop
416 # ---------
417 # Do nothing but, unlike ":", preserve the value of $?.
418 as_fn_nop ()
419 {
420 return $?
421 }
422 as_nop=as_fn_nop
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 s/[$]LINENO.*/&-/
497 t lineno
498 b
499 :lineno
500 N
501 :loop
502 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
503 t loop
504 s/-\n.*//
505 ' >$as_me.lineno &&
506 chmod +x "$as_me.lineno" ||
507 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508
509 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
510 # already done that, so ensure we don't try to do so again and fall
511 # in an infinite loop. This has already happened in practice.
512 _as_can_reexec=no; export _as_can_reexec
513 # Don't try to exec as it changes $[0], causing all sort of problems
514 # (the dirname of $[0] is not the place where we might find the
515 # original and so on. Autoconf is especially sensitive to this).
516 . "./$as_me.lineno"
517 # Exit status is that of the last command.
518 exit
519 }
520
521
522 # Determine whether it's possible to make 'echo' print without a newline.
523 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
524 # for compatibility with existing Makefiles.
525 ECHO_C= ECHO_N= ECHO_T=
526 case `echo -n x` in #(((((
527 -n*)
528 case `echo 'xy\c'` in
529 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
530 xy) ECHO_C='\c';;
531 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
532 ECHO_T=' ';;
533 esac;;
534 *)
535 ECHO_N='-n';;
536 esac
537
538 # For backward compatibility with old third-party macros, we provide
539 # the shell variables $as_echo and $as_echo_n. New code should use
540 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
541 as_echo='printf %s\n'
542 as_echo_n='printf %s'
543
544
545 rm -f conf$$ conf$$.exe conf$$.file
546 if test -d conf$$.dir; then
547 rm -f conf$$.dir/conf$$.file
548 else
549 rm -f conf$$.dir
550 mkdir conf$$.dir 2>/dev/null
551 fi
552 if (echo >conf$$.file) 2>/dev/null; then
553 if ln -s conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s='ln -s'
555 # ... but there are two gotchas:
556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
558 # In both cases, we have to default to `cp -pR'.
559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
560 as_ln_s='cp -pR'
561 elif ln conf$$.file conf$$ 2>/dev/null; then
562 as_ln_s=ln
563 else
564 as_ln_s='cp -pR'
565 fi
566 else
567 as_ln_s='cp -pR'
568 fi
569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
570 rmdir conf$$.dir 2>/dev/null
571
572 if mkdir -p . 2>/dev/null; then
573 as_mkdir_p='mkdir -p "$as_dir"'
574 else
575 test -d ./-p && rmdir ./-p
576 as_mkdir_p=false
577 fi
578
579 as_test_x='test -x'
580 as_executable_p=as_fn_executable_p
581
582 # Sed expression to map a string onto a valid CPP name.
583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584
585 # Sed expression to map a string onto a valid variable name.
586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
587
588
589 test -n "$DJDIR" || exec 7<&0 </dev/null
590 exec 6>&1
591
592 # Name of the host.
593 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
594 # so uname gets run too.
595 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
596
597 #
598 # Initializations.
599 #
600 ac_default_prefix=/usr/local
601 ac_clean_files=
602 ac_config_libobj_dir=.
603 LIBOBJS=
604 cross_compiling=no
605 subdirs=
606 MFLAGS=
607 MAKEFLAGS=
608
609 # Identity of this package.
610 PACKAGE_NAME='nsntrace'
611 PACKAGE_TARNAME='nsntrace'
612 PACKAGE_VERSION='4'
613 PACKAGE_STRING='nsntrace 4'
614 PACKAGE_BUGREPORT='https://github.com/jonasdn/nsntrace/issues'
615 PACKAGE_URL=''
616
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 ac_subst_vars='am__EXEEXT_FALSE
650 am__EXEEXT_TRUE
651 LTLIBOBJS
652 LIBOBJS
653 LIBNL_LIBS
654 LIBNL_CFLAGS
655 PKG_CONFIG_LIBDIR
656 PKG_CONFIG_PATH
657 PKG_CONFIG
658 IPTABLES_CHECK
659 ENABLE_MANPAGES_FALSE
660 ENABLE_MANPAGES_TRUE
661 XSLTPROC
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 AM_BACKSLASH
679 AM_DEFAULT_VERBOSITY
680 AM_DEFAULT_V
681 AM_V
682 CSCOPE
683 ETAGS
684 CTAGS
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 runstatedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL
747 am__quote'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_silent_rules
752 enable_dependency_tracking
753 enable_manpages
754 '
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
758 CC
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
763 PKG_CONFIG
764 PKG_CONFIG_PATH
765 PKG_CONFIG_LIBDIR
766 LIBNL_CFLAGS
767 LIBNL_LIBS'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 runstatedir='${localstatedir}/run'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 case $ac_dashdash$ac_option in
837 --)
838 ac_dashdash=yes ;;
839
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
841 ac_prev=bindir ;;
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 bindir=$ac_optarg ;;
844
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
849
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
856
857 --config-cache | -C)
858 cache_file=config.cache ;;
859
860 -datadir | --datadir | --datadi | --datad)
861 ac_prev=datadir ;;
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
864
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
871
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: \`$ac_useropt'"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=no ;;
887
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
892
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
897
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: \`$ac_useropt'"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
913
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
922
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
926
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
933
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
938
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
944
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
951
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
956
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
961
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
968
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
973
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
980
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
985
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
989
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
993
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
997
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1006
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1011
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1018
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1025
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1042
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1047
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1052
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1056
1057 -runstatedir | --runstatedir | --runstatedi | --runstated \
1058 | --runstate | --runstat | --runsta | --runst | --runs \
1059 | --run | --ru | --r)
1060 ac_prev=runstatedir ;;
1061 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1062 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1063 | --run=* | --ru=* | --r=*)
1064 runstatedir=$ac_optarg ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: \`$ac_useropt'"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: \`$ac_useropt'"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 ;;
1182
1183 esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir runstatedir
1204 do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 printf "%s\n" X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281 else
1282 ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures nsntrace 4 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/nsntrace]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1371
1372 cat <<\_ACEOF
1373
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of nsntrace 4:";;
1384 esac
1385 cat <<\_ACEOF
1386
1387 Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-silent-rules less verbose build output (undo: "make V=1")
1392 --disable-silent-rules verbose build output (undo: "make V=0")
1393 --enable-dependency-tracking
1394 do not reject slow dependency extractors
1395 --disable-dependency-tracking
1396 speeds up one-time build
1397 --disable-manpages disable manpages
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 PKG_CONFIG path to pkg-config utility
1408 PKG_CONFIG_PATH
1409 directories to add to pkg-config's search path
1410 PKG_CONFIG_LIBDIR
1411 path overriding pkg-config's built-in search path
1412 LIBNL_CFLAGS
1413 C compiler flags for LIBNL, overriding pkg-config
1414 LIBNL_LIBS linker flags for LIBNL, overriding pkg-config
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to <https://github.com/jonasdn/nsntrace/issues>.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1430 ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for configure.gnu first; this name is used for a wrapper for
1466 # Metaconfig's "Configure" on case-insensitive file systems.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478 fi
1479
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482 cat <<\_ACEOF
1483 nsntrace configure 4
1484 generated by GNU Autoconf 2.71
1485
1486 Copyright (C) 2021 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1491 fi
1492
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1496
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext conftest.beam
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 printf "%s\n" "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext
1523 then :
1524 ac_retval=0
1525 else $as_nop
1526 printf "%s\n" "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_c_try_link LINENO
1537 # -----------------------
1538 # Try to link conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_link ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1543 if { { ac_try="$ac_link"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 printf "%s\n" "$ac_try_echo"; } >&5
1550 (eval "$ac_link") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest$ac_exeext && {
1562 test "$cross_compiling" = yes ||
1563 test -x conftest$ac_exeext
1564 }
1565 then :
1566 ac_retval=0
1567 else $as_nop
1568 printf "%s\n" "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1574 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1575 # interfere with the next link command; also delete a directory that is
1576 # left behind by Apple's compiler. We do this before executing the actions.
1577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_link
1582
1583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists and can be compiled using the include files in
1586 # INCLUDES, setting the cache variable VAR accordingly.
1587 ac_fn_c_check_header_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 printf %s "checking for $2... " >&6; }
1592 if eval test \${$3+y}
1593 then :
1594 printf %s "(cached) " >&6
1595 else $as_nop
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1598 $4
1599 #include <$2>
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"
1602 then :
1603 eval "$3=yes"
1604 else $as_nop
1605 eval "$3=no"
1606 fi
1607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1608 fi
1609 eval ac_res=\$$3
1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 printf "%s\n" "$ac_res" >&6; }
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613
1614 } # ac_fn_c_check_header_compile
1615 ac_configure_args_raw=
1616 for ac_arg
1617 do
1618 case $ac_arg in
1619 *\'*)
1620 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621 esac
1622 as_fn_append ac_configure_args_raw " '$ac_arg'"
1623 done
1624
1625 case $ac_configure_args_raw in
1626 *$as_nl*)
1627 ac_safe_unquote= ;;
1628 *)
1629 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1630 ac_unsafe_a="$ac_unsafe_z#~"
1631 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1632 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1633 esac
1634
1635 cat >config.log <<_ACEOF
1636 This file contains any messages produced by compilers while
1637 running configure, to aid debugging if configure makes a mistake.
1638
1639 It was created by nsntrace $as_me 4, which was
1640 generated by GNU Autoconf 2.71. Invocation command line was
1641
1642 $ $0$ac_configure_args_raw
1643
1644 _ACEOF
1645 exec 5>>config.log
1646 {
1647 cat <<_ASUNAME
1648 ## --------- ##
1649 ## Platform. ##
1650 ## --------- ##
1651
1652 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1653 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1654 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1655 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1656 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1657
1658 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1659 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1660
1661 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1662 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1663 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1664 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1665 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1666 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1667 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1668
1669 _ASUNAME
1670
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674 IFS=$as_save_IFS
1675 case $as_dir in #(((
1676 '') as_dir=./ ;;
1677 */) ;;
1678 *) as_dir=$as_dir/ ;;
1679 esac
1680 printf "%s\n" "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707 for ac_arg
1708 do
1709 case $ac_arg in
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1713 continue ;;
1714 *\'*)
1715 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 esac
1717 case $ac_pass in
1718 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1719 2)
1720 as_fn_append ac_configure_args1 " '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1723 else
1724 case $ac_arg in
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 esac
1732 ;;
1733 -* ) ac_must_keep_next=true ;;
1734 esac
1735 fi
1736 as_fn_append ac_configure_args " '$ac_arg'"
1737 ;;
1738 esac
1739 done
1740 done
1741 { ac_configure_args0=; unset ac_configure_args0;}
1742 { ac_configure_args1=; unset ac_configure_args1;}
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Sanitize IFS.
1751 IFS=" "" $as_nl"
1752 # Save into config.log some information that might help in debugging.
1753 {
1754 echo
1755
1756 printf "%s\n" "## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##"
1759 echo
1760 # The following way of writing the cache mishandles newlines in values,
1761 (
1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763 eval ac_val=\$$ac_var
1764 case $ac_val in #(
1765 *${as_nl}*)
1766 case $ac_var in #(
1767 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1768 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 esac
1770 case $ac_var in #(
1771 _ | IFS | as_nl) ;; #(
1772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773 *) { eval $ac_var=; unset $ac_var;} ;;
1774 esac ;;
1775 esac
1776 done
1777 (set) 2>&1 |
1778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1780 sed -n \
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 ;; #(
1784 *)
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786 ;;
1787 esac |
1788 sort
1789 )
1790 echo
1791
1792 printf "%s\n" "## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##"
1795 echo
1796 for ac_var in $ac_subst_vars
1797 do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in
1800 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 esac
1802 printf "%s\n" "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1805
1806 if test -n "$ac_subst_files"; then
1807 printf "%s\n" "## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##"
1810 echo
1811 for ac_var in $ac_subst_files
1812 do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in
1815 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 esac
1817 printf "%s\n" "$ac_var='\''$ac_val'\''"
1818 done | sort
1819 echo
1820 fi
1821
1822 if test -s confdefs.h; then
1823 printf "%s\n" "## ----------- ##
1824 ## confdefs.h. ##
1825 ## ----------- ##"
1826 echo
1827 cat confdefs.h
1828 echo
1829 fi
1830 test "$ac_signal" != 0 &&
1831 printf "%s\n" "$as_me: caught signal $ac_signal"
1832 printf "%s\n" "$as_me: exit $exit_status"
1833 } >&5
1834 rm -f core *.core core.conftest.* &&
1835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836 exit $exit_status
1837 ' 0
1838 for ac_signal in 1 2 13 15; do
1839 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1840 done
1841 ac_signal=0
1842
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1845
1846 printf "%s\n" "/* confdefs.h */" > confdefs.h
1847
1848 # Predefined preprocessor variables.
1849
1850 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1851
1852 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1853
1854 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1855
1856 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1857
1858 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1859
1860 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1861
1862
1863 # Let the site file select an alternate cache file if it wants to.
1864 # Prefer an explicitly selected file to automatically selected ones.
1865 if test -n "$CONFIG_SITE"; then
1866 ac_site_files="$CONFIG_SITE"
1867 elif test "x$prefix" != xNONE; then
1868 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1869 else
1870 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1871 fi
1872
1873 for ac_site_file in $ac_site_files
1874 do
1875 case $ac_site_file in #(
1876 */*) :
1877 ;; #(
1878 *) :
1879 ac_site_file=./$ac_site_file ;;
1880 esac
1881 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1883 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1885 . "$ac_site_file" \
1886 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1887 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1888 as_fn_error $? "failed to load site script $ac_site_file
1889 See \`config.log' for more details" "$LINENO" 5; }
1890 fi
1891 done
1892
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special files
1895 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1896 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1898 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1899 case $cache_file in
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1902 esac
1903 fi
1904 else
1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1906 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1907 >$cache_file
1908 fi
1909
1910 # Test code for whether the C compiler supports C89 (global declarations)
1911 ac_c_conftest_c89_globals='
1912 /* Does the compiler advertise C89 conformance?
1913 Do not test the value of __STDC__, because some compilers set it to 0
1914 while being otherwise adequately conformant. */
1915 #if !defined __STDC__
1916 # error "Compiler does not advertise C89 conformance"
1917 #endif
1918
1919 #include <stddef.h>
1920 #include <stdarg.h>
1921 struct stat;
1922 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1923 struct buf { int x; };
1924 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1925 static char *e (p, i)
1926 char **p;
1927 int i;
1928 {
1929 return p[i];
1930 }
1931 static char *f (char * (*g) (char **, int), char **p, ...)
1932 {
1933 char *s;
1934 va_list v;
1935 va_start (v,p);
1936 s = g (p, va_arg (v,int));
1937 va_end (v);
1938 return s;
1939 }
1940
1941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1942 function prototypes and stuff, but not \xHH hex character constants.
1943 These do not provoke an error unfortunately, instead are silently treated
1944 as an "x". The following induces an error, until -std is added to get
1945 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1946 array size at least. It is necessary to write \x00 == 0 to get something
1947 that is true only with -std. */
1948 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1949
1950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1951 inside strings and character constants. */
1952 #define FOO(x) '\''x'\''
1953 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1954
1955 int test (int i, double x);
1956 struct s1 {int (*f) (int a);};
1957 struct s2 {int (*f) (double a);};
1958 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1959 int, int);'
1960
1961 # Test code for whether the C compiler supports C89 (body of main).
1962 ac_c_conftest_c89_main='
1963 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1964 '
1965
1966 # Test code for whether the C compiler supports C99 (global declarations)
1967 ac_c_conftest_c99_globals='
1968 // Does the compiler advertise C99 conformance?
1969 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1970 # error "Compiler does not advertise C99 conformance"
1971 #endif
1972
1973 #include <stdbool.h>
1974 extern int puts (const char *);
1975 extern int printf (const char *, ...);
1976 extern int dprintf (int, const char *, ...);
1977 extern void *malloc (size_t);
1978
1979 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1980 // dprintf is used instead of fprintf to avoid needing to declare
1981 // FILE and stderr.
1982 #define debug(...) dprintf (2, __VA_ARGS__)
1983 #define showlist(...) puts (#__VA_ARGS__)
1984 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1985 static void
1986 test_varargs_macros (void)
1987 {
1988 int x = 1234;
1989 int y = 5678;
1990 debug ("Flag");
1991 debug ("X = %d\n", x);
1992 showlist (The first, second, and third items.);
1993 report (x>y, "x is %d but y is %d", x, y);
1994 }
1995
1996 // Check long long types.
1997 #define BIG64 18446744073709551615ull
1998 #define BIG32 4294967295ul
1999 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2000 #if !BIG_OK
2001 #error "your preprocessor is broken"
2002 #endif
2003 #if BIG_OK
2004 #else
2005 #error "your preprocessor is broken"
2006 #endif
2007 static long long int bignum = -9223372036854775807LL;
2008 static unsigned long long int ubignum = BIG64;
2009
2010 struct incomplete_array
2011 {
2012 int datasize;
2013 double data[];
2014 };
2015
2016 struct named_init {
2017 int number;
2018 const wchar_t *name;
2019 double average;
2020 };
2021
2022 typedef const char *ccp;
2023
2024 static inline int
2025 test_restrict (ccp restrict text)
2026 {
2027 // See if C++-style comments work.
2028 // Iterate through items via the restricted pointer.
2029 // Also check for declarations in for loops.
2030 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2031 continue;
2032 return 0;
2033 }
2034
2035 // Check varargs and va_copy.
2036 static bool
2037 test_varargs (const char *format, ...)
2038 {
2039 va_list args;
2040 va_start (args, format);
2041 va_list args_copy;
2042 va_copy (args_copy, args);
2043
2044 const char *str = "";
2045 int number = 0;
2046 float fnumber = 0;
2047
2048 while (*format)
2049 {
2050 switch (*format++)
2051 {
2052 case '\''s'\'': // string
2053 str = va_arg (args_copy, const char *);
2054 break;
2055 case '\''d'\'': // int
2056 number = va_arg (args_copy, int);
2057 break;
2058 case '\''f'\'': // float
2059 fnumber = va_arg (args_copy, double);
2060 break;
2061 default:
2062 break;
2063 }
2064 }
2065 va_end (args_copy);
2066 va_end (args);
2067
2068 return *str && number && fnumber;
2069 }
2070 '
2071
2072 # Test code for whether the C compiler supports C99 (body of main).
2073 ac_c_conftest_c99_main='
2074 // Check bool.
2075 _Bool success = false;
2076 success |= (argc != 0);
2077
2078 // Check restrict.
2079 if (test_restrict ("String literal") == 0)
2080 success = true;
2081 char *restrict newvar = "Another string";
2082
2083 // Check varargs.
2084 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2085 test_varargs_macros ();
2086
2087 // Check flexible array members.
2088 struct incomplete_array *ia =
2089 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2090 ia->datasize = 10;
2091 for (int i = 0; i < ia->datasize; ++i)
2092 ia->data[i] = i * 1.234;
2093
2094 // Check named initializers.
2095 struct named_init ni = {
2096 .number = 34,
2097 .name = L"Test wide string",
2098 .average = 543.34343,
2099 };
2100
2101 ni.number = 58;
2102
2103 int dynamic_array[ni.number];
2104 dynamic_array[0] = argv[0][0];
2105 dynamic_array[ni.number - 1] = 543;
2106
2107 // work around unused variable warnings
2108 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2109 || dynamic_array[ni.number - 1] != 543);
2110 '
2111
2112 # Test code for whether the C compiler supports C11 (global declarations)
2113 ac_c_conftest_c11_globals='
2114 // Does the compiler advertise C11 conformance?
2115 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2116 # error "Compiler does not advertise C11 conformance"
2117 #endif
2118
2119 // Check _Alignas.
2120 char _Alignas (double) aligned_as_double;
2121 char _Alignas (0) no_special_alignment;
2122 extern char aligned_as_int;
2123 char _Alignas (0) _Alignas (int) aligned_as_int;
2124
2125 // Check _Alignof.
2126 enum
2127 {
2128 int_alignment = _Alignof (int),
2129 int_array_alignment = _Alignof (int[100]),
2130 char_alignment = _Alignof (char)
2131 };
2132 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2133
2134 // Check _Noreturn.
2135 int _Noreturn does_not_return (void) { for (;;) continue; }
2136
2137 // Check _Static_assert.
2138 struct test_static_assert
2139 {
2140 int x;
2141 _Static_assert (sizeof (int) <= sizeof (long int),
2142 "_Static_assert does not work in struct");
2143 long int y;
2144 };
2145
2146 // Check UTF-8 literals.
2147 #define u8 syntax error!
2148 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2149
2150 // Check duplicate typedefs.
2151 typedef long *long_ptr;
2152 typedef long int *long_ptr;
2153 typedef long_ptr long_ptr;
2154
2155 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2156 struct anonymous
2157 {
2158 union {
2159 struct { int i; int j; };
2160 struct { int k; long int l; } w;
2161 };
2162 int m;
2163 } v1;
2164 '
2165
2166 # Test code for whether the C compiler supports C11 (body of main).
2167 ac_c_conftest_c11_main='
2168 _Static_assert ((offsetof (struct anonymous, i)
2169 == offsetof (struct anonymous, w.k)),
2170 "Anonymous union alignment botch");
2171 v1.i = 2;
2172 v1.w.k = 5;
2173 ok |= v1.i != 5;
2174 '
2175
2176 # Test code for whether the C compiler supports C11 (complete).
2177 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2178 ${ac_c_conftest_c99_globals}
2179 ${ac_c_conftest_c11_globals}
2180
2181 int
2182 main (int argc, char **argv)
2183 {
2184 int ok = 0;
2185 ${ac_c_conftest_c89_main}
2186 ${ac_c_conftest_c99_main}
2187 ${ac_c_conftest_c11_main}
2188 return ok;
2189 }
2190 "
2191
2192 # Test code for whether the C compiler supports C99 (complete).
2193 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2194 ${ac_c_conftest_c99_globals}
2195
2196 int
2197 main (int argc, char **argv)
2198 {
2199 int ok = 0;
2200 ${ac_c_conftest_c89_main}
2201 ${ac_c_conftest_c99_main}
2202 return ok;
2203 }
2204 "
2205
2206 # Test code for whether the C compiler supports C89 (complete).
2207 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2208
2209 int
2210 main (int argc, char **argv)
2211 {
2212 int ok = 0;
2213 ${ac_c_conftest_c89_main}
2214 return ok;
2215 }
2216 "
2217
2218 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2219 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2220 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2221 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2222 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2223 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2224 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2225 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2226 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2227
2228 # Auxiliary files required by this configure script.
2229 ac_aux_files="compile missing install-sh"
2230
2231 # Locations in which to look for auxiliary files.
2232 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2233
2234 # Search for a directory containing all of the required auxiliary files,
2235 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2236 # If we don't find one directory that contains all the files we need,
2237 # we report the set of missing files from the *first* directory in
2238 # $ac_aux_dir_candidates and give up.
2239 ac_missing_aux_files=""
2240 ac_first_candidate=:
2241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 as_found=false
2244 for as_dir in $ac_aux_dir_candidates
2245 do
2246 IFS=$as_save_IFS
2247 case $as_dir in #(((
2248 '') as_dir=./ ;;
2249 */) ;;
2250 *) as_dir=$as_dir/ ;;
2251 esac
2252 as_found=:
2253
2254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2255 ac_aux_dir_found=yes
2256 ac_install_sh=
2257 for ac_aux in $ac_aux_files
2258 do
2259 # As a special case, if "install-sh" is required, that requirement
2260 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2261 # and $ac_install_sh is set appropriately for whichever one is found.
2262 if test x"$ac_aux" = x"install-sh"
2263 then
2264 if test -f "${as_dir}install-sh"; then
2265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2266 ac_install_sh="${as_dir}install-sh -c"
2267 elif test -f "${as_dir}install.sh"; then
2268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2269 ac_install_sh="${as_dir}install.sh -c"
2270 elif test -f "${as_dir}shtool"; then
2271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2272 ac_install_sh="${as_dir}shtool install -c"
2273 else
2274 ac_aux_dir_found=no
2275 if $ac_first_candidate; then
2276 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2277 else
2278 break
2279 fi
2280 fi
2281 else
2282 if test -f "${as_dir}${ac_aux}"; then
2283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2284 else
2285 ac_aux_dir_found=no
2286 if $ac_first_candidate; then
2287 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2288 else
2289 break
2290 fi
2291 fi
2292 fi
2293 done
2294 if test "$ac_aux_dir_found" = yes; then
2295 ac_aux_dir="$as_dir"
2296 break
2297 fi
2298 ac_first_candidate=false
2299
2300 as_found=false
2301 done
2302 IFS=$as_save_IFS
2303 if $as_found
2304 then :
2305
2306 else $as_nop
2307 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2308 fi
2309
2310
2311 # These three variables are undocumented and unsupported,
2312 # and are intended to be withdrawn in a future Autoconf release.
2313 # They can cause serious problems if a builder's source tree is in a directory
2314 # whose full name contains unusual characters.
2315 if test -f "${ac_aux_dir}config.guess"; then
2316 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2317 fi
2318 if test -f "${ac_aux_dir}config.sub"; then
2319 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2320 fi
2321 if test -f "$ac_aux_dir/configure"; then
2322 ac_configure="$SHELL ${ac_aux_dir}configure"
2323 fi
2324
2325 # Check that the precious variables saved in the cache have kept the same
2326 # value.
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2334 set,)
2335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,set)
2339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2342 ,);;
2343 *)
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2352 else
2353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2356 fi
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2361 fi;;
2362 esac
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2365 case $ac_new_val in
2366 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2368 esac
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372 esac
2373 fi
2374 done
2375 if $ac_cache_corrupted; then
2376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2381 and start over" "$LINENO" 5
2382 fi
2383 ## -------------------- ##
2384 ## Main body of script. ##
2385 ## -------------------- ##
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395 am__api_version='1.16'
2396
2397
2398
2399 # Find a good install program. We prefer a C program (faster),
2400 # so one script is as good as another. But avoid the broken or
2401 # incompatible versions:
2402 # SysV /etc/install, /usr/sbin/install
2403 # SunOS /usr/etc/install
2404 # IRIX /sbin/install
2405 # AIX /bin/install
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410 # OS/2's system install, which has a completely different semantic
2411 # ./install, which can be erroneously created by make from ./install.sh.
2412 # Reject install programs that cannot install multiple files.
2413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2414 printf %s "checking for a BSD-compatible install... " >&6; }
2415 if test -z "$INSTALL"; then
2416 if test ${ac_cv_path_install+y}
2417 then :
2418 printf %s "(cached) " >&6
2419 else $as_nop
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 case $as_dir in #(((
2425 '') as_dir=./ ;;
2426 */) ;;
2427 *) as_dir=$as_dir/ ;;
2428 esac
2429 # Account for fact that we put trailing slashes in our PATH walk.
2430 case $as_dir in #((
2431 ./ | /[cC]/* | \
2432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2434 /usr/ucb/* ) ;;
2435 *)
2436 # OSF1 and SCO ODT 3.0 have their own names for install.
2437 # Don't use installbsd from OSF since it installs stuff as root
2438 # by default.
2439 for ac_prog in ginstall scoinst install; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2442 if test $ac_prog = install &&
2443 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444 # AIX install. It has an incompatible calling convention.
2445 :
2446 elif test $ac_prog = install &&
2447 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # program-specific install script used by HP pwplus--don't use.
2449 :
2450 else
2451 rm -rf conftest.one conftest.two conftest.dir
2452 echo one > conftest.one
2453 echo two > conftest.two
2454 mkdir conftest.dir
2455 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2456 test -s conftest.one && test -s conftest.two &&
2457 test -s conftest.dir/conftest.one &&
2458 test -s conftest.dir/conftest.two
2459 then
2460 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2461 break 3
2462 fi
2463 fi
2464 fi
2465 done
2466 done
2467 ;;
2468 esac
2469
2470 done
2471 IFS=$as_save_IFS
2472
2473 rm -rf conftest.one conftest.two conftest.dir
2474
2475 fi
2476 if test ${ac_cv_path_install+y}; then
2477 INSTALL=$ac_cv_path_install
2478 else
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for INSTALL within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 INSTALL=$ac_install_sh
2484 fi
2485 fi
2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2487 printf "%s\n" "$INSTALL" >&6; }
2488
2489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2490 # It thinks the first close brace ends the variable substitution.
2491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2492
2493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2494
2495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2496
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2498 printf %s "checking whether build environment is sane... " >&6; }
2499 # Reject unsafe characters in $srcdir or the absolute working directory
2500 # name. Accept space and tab only in the latter.
2501 am_lf='
2502 '
2503 case `pwd` in
2504 *[\\\"\#\$\&\'\`$am_lf]*)
2505 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2506 esac
2507 case $srcdir in
2508 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2509 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2510 esac
2511
2512 # Do 'set' in a subshell so we don't clobber the current shell's
2513 # arguments. Must try -L first in case configure is actually a
2514 # symlink; some systems play weird games with the mod time of symlinks
2515 # (eg FreeBSD returns the mod time of the symlink's containing
2516 # directory).
2517 if (
2518 am_has_slept=no
2519 for am_try in 1 2; do
2520 echo "timestamp, slept: $am_has_slept" > conftest.file
2521 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2522 if test "$*" = "X"; then
2523 # -L didn't work.
2524 set X `ls -t "$srcdir/configure" conftest.file`
2525 fi
2526 if test "$*" != "X $srcdir/configure conftest.file" \
2527 && test "$*" != "X conftest.file $srcdir/configure"; then
2528
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
2533 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2534 alias in your environment" "$LINENO" 5
2535 fi
2536 if test "$2" = conftest.file || test $am_try -eq 2; then
2537 break
2538 fi
2539 # Just in case.
2540 sleep 1
2541 am_has_slept=yes
2542 done
2543 test "$2" = conftest.file
2544 )
2545 then
2546 # Ok.
2547 :
2548 else
2549 as_fn_error $? "newly created file is older than distributed files!
2550 Check your system clock" "$LINENO" 5
2551 fi
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 printf "%s\n" "yes" >&6; }
2554 # If we didn't sleep, we still need to ensure time stamps of config.status and
2555 # generated files are strictly newer.
2556 am_sleep_pid=
2557 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2558 ( sleep 1 ) &
2559 am_sleep_pid=$!
2560 fi
2561
2562 rm -f conftest.file
2563
2564 test "$program_prefix" != NONE &&
2565 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2566 # Use a double $ so make ignores it.
2567 test "$program_suffix" != NONE &&
2568 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2569 # Double any \ or $.
2570 # By default was `s,x,x', remove it if useless.
2571 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2572 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2573
2574
2575 # Expand $ac_aux_dir to an absolute path.
2576 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2577
2578
2579 if test x"${MISSING+set}" != xset; then
2580 MISSING="\${SHELL} '$am_aux_dir/missing'"
2581 fi
2582 # Use eval to expand $SHELL
2583 if eval "$MISSING --is-lightweight"; then
2584 am_missing_run="$MISSING "
2585 else
2586 am_missing_run=
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2588 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2589 fi
2590
2591 if test x"${install_sh+set}" != xset; then
2592 case $am_aux_dir in
2593 *\ * | *\ *)
2594 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2595 *)
2596 install_sh="\${SHELL} $am_aux_dir/install-sh"
2597 esac
2598 fi
2599
2600 # Installed binaries are usually stripped using 'strip' when the user
2601 # run "make install-strip". However 'strip' might not be the right
2602 # tool to use in cross-compilation environments, therefore Automake
2603 # will honor the 'STRIP' environment variable to overrule this program.
2604 if test "$cross_compiling" != no; then
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}strip; ac_word=$2
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 printf %s "checking for $ac_word... " >&6; }
2610 if test ${ac_cv_prog_STRIP+y}
2611 then :
2612 printf %s "(cached) " >&6
2613 else $as_nop
2614 if test -n "$STRIP"; then
2615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 case $as_dir in #(((
2622 '') as_dir=./ ;;
2623 */) ;;
2624 *) as_dir=$as_dir/ ;;
2625 esac
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 printf "%s\n" "$STRIP" >&6; }
2642 else
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 printf "%s\n" "no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$ac_cv_prog_STRIP"; then
2650 ac_ct_STRIP=$STRIP
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 printf %s "checking for $ac_word... " >&6; }
2655 if test ${ac_cv_prog_ac_ct_STRIP+y}
2656 then :
2657 printf %s "(cached) " >&6
2658 else $as_nop
2659 if test -n "$ac_ct_STRIP"; then
2660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 case $as_dir in #(((
2667 '') as_dir=./ ;;
2668 */) ;;
2669 *) as_dir=$as_dir/ ;;
2670 esac
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_ac_ct_STRIP="strip"
2674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2686 printf "%s\n" "$ac_ct_STRIP" >&6; }
2687 else
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 printf "%s\n" "no" >&6; }
2690 fi
2691
2692 if test "x$ac_ct_STRIP" = x; then
2693 STRIP=":"
2694 else
2695 case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701 STRIP=$ac_ct_STRIP
2702 fi
2703 else
2704 STRIP="$ac_cv_prog_STRIP"
2705 fi
2706
2707 fi
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2709
2710
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2712 printf %s "checking for a race-free mkdir -p... " >&6; }
2713 if test -z "$MKDIR_P"; then
2714 if test ${ac_cv_path_mkdir+y}
2715 then :
2716 printf %s "(cached) " >&6
2717 else $as_nop
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720 do
2721 IFS=$as_save_IFS
2722 case $as_dir in #(((
2723 '') as_dir=./ ;;
2724 */) ;;
2725 *) as_dir=$as_dir/ ;;
2726 esac
2727 for ac_prog in mkdir gmkdir; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2730 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731 'mkdir ('*'coreutils) '* | \
2732 'BusyBox '* | \
2733 'mkdir (fileutils) '4.1*)
2734 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2735 break 3;;
2736 esac
2737 done
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743
2744 test -d ./--version && rmdir ./--version
2745 if test ${ac_cv_path_mkdir+y}; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
2747 else
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for MKDIR_P within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 MKDIR_P="$ac_install_sh -d"
2753 fi
2754 fi
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756 printf "%s\n" "$MKDIR_P" >&6; }
2757
2758 for ac_prog in gawk mawk nawk awk
2759 do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 printf %s "checking for $ac_word... " >&6; }
2764 if test ${ac_cv_prog_AWK+y}
2765 then :
2766 printf %s "(cached) " >&6
2767 else $as_nop
2768 if test -n "$AWK"; then
2769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 case $as_dir in #(((
2776 '') as_dir=./ ;;
2777 */) ;;
2778 *) as_dir=$as_dir/ ;;
2779 esac
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_AWK="$ac_prog"
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 AWK=$ac_cv_prog_AWK
2793 if test -n "$AWK"; then
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795 printf "%s\n" "$AWK" >&6; }
2796 else
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 printf "%s\n" "no" >&6; }
2799 fi
2800
2801
2802 test -n "$AWK" && break
2803 done
2804
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807 set x ${MAKE-make}
2808 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2810 then :
2811 printf %s "(cached) " >&6
2812 else $as_nop
2813 cat >conftest.make <<\_ACEOF
2814 SHELL = /bin/sh
2815 all:
2816 @echo '@@@%%%=$(MAKE)=@@@%%%'
2817 _ACEOF
2818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820 *@@@%%%=?*=@@@%%%*)
2821 eval ac_cv_prog_make_${ac_make}_set=yes;;
2822 *)
2823 eval ac_cv_prog_make_${ac_make}_set=no;;
2824 esac
2825 rm -f conftest.make
2826 fi
2827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 printf "%s\n" "yes" >&6; }
2830 SET_MAKE=
2831 else
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 printf "%s\n" "no" >&6; }
2834 SET_MAKE="MAKE=${MAKE-make}"
2835 fi
2836
2837 rm -rf .tst 2>/dev/null
2838 mkdir .tst 2>/dev/null
2839 if test -d .tst; then
2840 am__leading_dot=.
2841 else
2842 am__leading_dot=_
2843 fi
2844 rmdir .tst 2>/dev/null
2845
2846 # Check whether --enable-silent-rules was given.
2847 if test ${enable_silent_rules+y}
2848 then :
2849 enableval=$enable_silent_rules;
2850 fi
2851
2852 case $enable_silent_rules in # (((
2853 yes) AM_DEFAULT_VERBOSITY=0;;
2854 no) AM_DEFAULT_VERBOSITY=1;;
2855 *) AM_DEFAULT_VERBOSITY=1;;
2856 esac
2857 am_make=${MAKE-make}
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2859 printf %s "checking whether $am_make supports nested variables... " >&6; }
2860 if test ${am_cv_make_support_nested_variables+y}
2861 then :
2862 printf %s "(cached) " >&6
2863 else $as_nop
2864 if printf "%s\n" 'TRUE=$(BAR$(V))
2865 BAR0=false
2866 BAR1=true
2867 V=1
2868 am__doit:
2869 @$(TRUE)
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2872 else
2873 am_cv_make_support_nested_variables=no
2874 fi
2875 fi
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2879 AM_V='$(V)'
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2881 else
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2884 fi
2885 AM_BACKSLASH='\'
2886
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2894 fi
2895 fi
2896
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2901 else
2902 CYGPATH_W=echo
2903 fi
2904 fi
2905
2906
2907 # Define the identity of the package.
2908 PACKAGE='nsntrace'
2909 VERSION='4'
2910
2911
2912 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
2913
2914
2915 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
2916
2917 # Some tools Automake needs.
2918
2919 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2920
2921
2922 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2923
2924
2925 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2926
2927
2928 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2929
2930
2931 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2932
2933 # For better backward compatibility. To be removed once Automake 1.9.x
2934 # dies out for good. For more background, see:
2935 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2936 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2937 mkdir_p='$(MKDIR_P)'
2938
2939 # We need awk for the "check" target (and possibly the TAP driver). The
2940 # system "awk" is bad on some platforms.
2941 # Always define AMTAR for backward compatibility. Yes, it's still used
2942 # in the wild :-( We should find a proper way to deprecate it ...
2943 AMTAR='$${TAR-tar}'
2944
2945
2946 # We'll loop over all known methods to create a tar archive until one works.
2947 _am_tools='gnutar pax cpio none'
2948
2949 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2950
2951
2952
2953
2954
2955 # Variables for tags utilities; see am/tags.am
2956 if test -z "$CTAGS"; then
2957 CTAGS=ctags
2958 fi
2959
2960 if test -z "$ETAGS"; then
2961 ETAGS=etags
2962 fi
2963
2964 if test -z "$CSCOPE"; then
2965 CSCOPE=cscope
2966 fi
2967
2968
2969
2970 # POSIX will say in a future version that running "rm -f" with no argument
2971 # is OK; and we want to be able to make that assumption in our Makefile
2972 # recipes. So use an aggressive probe to check that the usage we want is
2973 # actually supported "in the wild" to an acceptable degree.
2974 # See automake bug#10828.
2975 # To make any issue more visible, cause the running configure to be aborted
2976 # by default if the 'rm' program in use doesn't match our expectations; the
2977 # user can still override this though.
2978 if rm -f && rm -fr && rm -rf; then : OK; else
2979 cat >&2 <<'END'
2980 Oops!
2981
2982 Your 'rm' program seems unable to run without file operands specified
2983 on the command line, even when the '-f' option is present. This is contrary
2984 to the behaviour of most rm programs out there, and not conforming with
2985 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2986
2987 Please tell bug-automake@gnu.org about your system, including the value
2988 of your $PATH and any error possibly output before this message. This
2989 can help us improve future automake versions.
2990
2991 END
2992 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2993 echo 'Configuration will proceed anyway, since you have set the' >&2
2994 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2995 echo >&2
2996 else
2997 cat >&2 <<'END'
2998 Aborting the configuration process, to ensure you take notice of the issue.
2999
3000 You can download and install GNU coreutils to get an 'rm' implementation
3001 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3002
3003 If you want to complete the configuration process using your problematic
3004 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3005 to "yes", and re-run configure.
3006
3007 END
3008 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3009 fi
3010 fi
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021 DEPDIR="${am__leading_dot}deps"
3022
3023 ac_config_commands="$ac_config_commands depfiles"
3024
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3026 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3027 cat > confinc.mk << 'END'
3028 am__doit:
3029 @echo this is the am__doit target >confinc.out
3030 .PHONY: am__doit
3031 END
3032 am__include="#"
3033 am__quote=
3034 # BSD make does it like this.
3035 echo '.include "confinc.mk" # ignored' > confmf.BSD
3036 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3037 echo 'include confinc.mk # ignored' > confmf.GNU
3038 _am_result=no
3039 for s in GNU BSD; do
3040 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3041 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }
3045 case $?:`cat confinc.out 2>/dev/null` in #(
3046 '0:this is the am__doit target') :
3047 case $s in #(
3048 BSD) :
3049 am__include='.include' am__quote='"' ;; #(
3050 *) :
3051 am__include='include' am__quote='' ;;
3052 esac ;; #(
3053 *) :
3054 ;;
3055 esac
3056 if test "$am__include" != "#"; then
3057 _am_result="yes ($s style)"
3058 break
3059 fi
3060 done
3061 rm -f confinc.* confmf.*
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3063 printf "%s\n" "${_am_result}" >&6; }
3064
3065 # Check whether --enable-dependency-tracking was given.
3066 if test ${enable_dependency_tracking+y}
3067 then :
3068 enableval=$enable_dependency_tracking;
3069 fi
3070
3071 if test "x$enable_dependency_tracking" != xno; then
3072 am_depcomp="$ac_aux_dir/depcomp"
3073 AMDEPBACKSLASH='\'
3074 am__nodep='_no'
3075 fi
3076 if test "x$enable_dependency_tracking" != xno; then
3077 AMDEP_TRUE=
3078 AMDEP_FALSE='#'
3079 else
3080 AMDEP_TRUE='#'
3081 AMDEP_FALSE=
3082 fi
3083
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 printf %s "checking for $ac_word... " >&6; }
3095 if test ${ac_cv_prog_CC+y}
3096 then :
3097 printf %s "(cached) " >&6
3098 else $as_nop
3099 if test -n "$CC"; then
3100 ac_cv_prog_CC="$CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 case $as_dir in #(((
3107 '') as_dir=./ ;;
3108 */) ;;
3109 *) as_dir=$as_dir/ ;;
3110 esac
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 printf "%s\n" "$CC" >&6; }
3127 else
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 printf "%s\n" "no" >&6; }
3130 fi
3131
3132
3133 fi
3134 if test -z "$ac_cv_prog_CC"; then
3135 ac_ct_CC=$CC
3136 # Extract the first word of "gcc", so it can be a program name with args.
3137 set dummy gcc; ac_word=$2
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 printf %s "checking for $ac_word... " >&6; }
3140 if test ${ac_cv_prog_ac_ct_CC+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else $as_nop
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 case $as_dir in #(((
3152 '') as_dir=./ ;;
3153 */) ;;
3154 *) as_dir=$as_dir/ ;;
3155 esac
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_ac_ct_CC="gcc"
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169 if test -n "$ac_ct_CC"; then
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171 printf "%s\n" "$ac_ct_CC" >&6; }
3172 else
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 printf "%s\n" "no" >&6; }
3175 fi
3176
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3187 fi
3188 else
3189 CC="$ac_cv_prog_CC"
3190 fi
3191
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}cc; ac_word=$2
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_CC+y}
3199 then :
3200 printf %s "(cached) " >&6
3201 else $as_nop
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 case $as_dir in #(((
3210 '') as_dir=./ ;;
3211 */) ;;
3212 *) as_dir=$as_dir/ ;;
3213 esac
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_CC="${ac_tool_prefix}cc"
3217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 printf "%s\n" "$CC" >&6; }
3230 else
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 printf "%s\n" "no" >&6; }
3233 fi
3234
3235
3236 fi
3237 fi
3238 if test -z "$CC"; then
3239 # Extract the first word of "cc", so it can be a program name with args.
3240 set dummy cc; ac_word=$2
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 printf %s "checking for $ac_word... " >&6; }
3243 if test ${ac_cv_prog_CC+y}
3244 then :
3245 printf %s "(cached) " >&6
3246 else $as_nop
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 ac_prog_rejected=no
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 case $as_dir in #(((
3256 '') as_dir=./ ;;
3257 */) ;;
3258 *) as_dir=$as_dir/ ;;
3259 esac
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3262 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3263 ac_prog_rejected=yes
3264 continue
3265 fi
3266 ac_cv_prog_CC="cc"
3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 if test $ac_prog_rejected = yes; then
3275 # We found a bogon in the path, so make sure we never use it.
3276 set dummy $ac_cv_prog_CC
3277 shift
3278 if test $# != 0; then
3279 # We chose a different compiler from the bogus one.
3280 # However, it has the same basename, so the bogon will be chosen
3281 # first if we set CC to just the basename; use the full file name.
3282 shift
3283 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3284 fi
3285 fi
3286 fi
3287 fi
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 printf "%s\n" "$CC" >&6; }
3292 else
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 printf "%s\n" "no" >&6; }
3295 fi
3296
3297
3298 fi
3299 if test -z "$CC"; then
3300 if test -n "$ac_tool_prefix"; then
3301 for ac_prog in cl.exe
3302 do
3303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 printf %s "checking for $ac_word... " >&6; }
3307 if test ${ac_cv_prog_CC+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else $as_nop
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 case $as_dir in #(((
3319 '') as_dir=./ ;;
3320 */) ;;
3321 *) as_dir=$as_dir/ ;;
3322 esac
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 printf "%s\n" "$CC" >&6; }
3339 else
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3342 fi
3343
3344
3345 test -n "$CC" && break
3346 done
3347 fi
3348 if test -z "$CC"; then
3349 ac_ct_CC=$CC
3350 for ac_prog in cl.exe
3351 do
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 printf %s "checking for $ac_word... " >&6; }
3356 if test ${ac_cv_prog_ac_ct_CC+y}
3357 then :
3358 printf %s "(cached) " >&6
3359 else $as_nop
3360 if test -n "$ac_ct_CC"; then
3361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 case $as_dir in #(((
3368 '') as_dir=./ ;;
3369 */) ;;
3370 *) as_dir=$as_dir/ ;;
3371 esac
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_CC="$ac_prog"
3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387 printf "%s\n" "$ac_ct_CC" >&6; }
3388 else
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
3391 fi
3392
3393
3394 test -n "$ac_ct_CC" && break
3395 done
3396
3397 if test "x$ac_ct_CC" = x; then
3398 CC=""
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401 yes:)
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned=yes ;;
3405 esac
3406 CC=$ac_ct_CC
3407 fi
3408 fi
3409
3410 fi
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}clang; ac_word=$2
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 printf %s "checking for $ac_word... " >&6; }
3417 if test ${ac_cv_prog_CC+y}
3418 then :
3419 printf %s "(cached) " >&6
3420 else $as_nop
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 case $as_dir in #(((
3429 '') as_dir=./ ;;
3430 */) ;;
3431 *) as_dir=$as_dir/ ;;
3432 esac
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_CC="${ac_tool_prefix}clang"
3436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 printf "%s\n" "$CC" >&6; }
3449 else
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 printf "%s\n" "no" >&6; }
3452 fi
3453
3454
3455 fi
3456 if test -z "$ac_cv_prog_CC"; then
3457 ac_ct_CC=$CC
3458 # Extract the first word of "clang", so it can be a program name with args.
3459 set dummy clang; ac_word=$2
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 printf %s "checking for $ac_word... " >&6; }
3462 if test ${ac_cv_prog_ac_ct_CC+y}
3463 then :
3464 printf %s "(cached) " >&6
3465 else $as_nop
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 case $as_dir in #(((
3474 '') as_dir=./ ;;
3475 */) ;;
3476 *) as_dir=$as_dir/ ;;
3477 esac
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_CC="clang"
3481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491 if test -n "$ac_ct_CC"; then
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493 printf "%s\n" "$ac_ct_CC" >&6; }
3494 else
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 printf "%s\n" "no" >&6; }
3497 fi
3498
3499 if test "x$ac_ct_CC" = x; then
3500 CC=""
3501 else
3502 case $cross_compiling:$ac_tool_warned in
3503 yes:)
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3507 esac
3508 CC=$ac_ct_CC
3509 fi
3510 else
3511 CC="$ac_cv_prog_CC"
3512 fi
3513
3514 fi
3515
3516
3517 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "no acceptable C compiler found in \$PATH
3520 See \`config.log' for more details" "$LINENO" 5; }
3521
3522 # Provide some information about the compiler.
3523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3524 set X $ac_compile
3525 ac_compiler=$2
3526 for ac_option in --version -v -V -qversion -version; do
3527 { { ac_try="$ac_compiler $ac_option >&5"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 printf "%s\n" "$ac_try_echo"; } >&5
3534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3535 ac_status=$?
3536 if test -s conftest.err; then
3537 sed '10a\
3538 ... rest of stderr output deleted ...
3539 10q' conftest.err >conftest.er1
3540 cat conftest.er1 >&5
3541 fi
3542 rm -f conftest.er1 conftest.err
3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }
3545 done
3546
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549
3550 int
3551 main (void)
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 ac_clean_files_save=$ac_clean_files
3559 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3560 # Try to create an executable without -o first, disregard a.out.
3561 # It will help us diagnose broken compilers, and finding out an intuition
3562 # of exeext.
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3564 printf %s "checking whether the C compiler works... " >&6; }
3565 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3566
3567 # The possible output files:
3568 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3569
3570 ac_rmfiles=
3571 for ac_file in $ac_files
3572 do
3573 case $ac_file in
3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3576 esac
3577 done
3578 rm -f $ac_rmfiles
3579
3580 if { { ac_try="$ac_link_default"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 printf "%s\n" "$ac_try_echo"; } >&5
3587 (eval "$ac_link_default") 2>&5
3588 ac_status=$?
3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3596 # Autoconf.
3597 for ac_file in $ac_files ''
3598 do
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3602 ;;
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
3608 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 fi
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3617 break;;
3618 * )
3619 break;;
3620 esac
3621 done
3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
3623
3624 else $as_nop
3625 ac_file=''
3626 fi
3627 if test -z "$ac_file"
3628 then :
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 printf "%s\n" "no" >&6; }
3631 printf "%s\n" "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error 77 "C compiler cannot create executables
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 else $as_nop
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 printf "%s\n" "yes" >&6; }
3641 fi
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643 printf %s "checking for C compiler default output file name... " >&6; }
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645 printf "%s\n" "$ac_file" >&6; }
3646 ac_exeext=$ac_cv_exeext
3647
3648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649 ac_clean_files=$ac_clean_files_save
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651 printf %s "checking for suffix of executables... " >&6; }
3652 if { { ac_try="$ac_link"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 printf "%s\n" "$ac_try_echo"; } >&5
3659 (eval "$ac_link") 2>&5
3660 ac_status=$?
3661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3663 then :
3664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3665 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3666 # work properly (i.e., refer to `conftest.exe'), while it won't with
3667 # `rm'.
3668 for ac_file in conftest.exe conftest conftest.*; do
3669 test -f "$ac_file" || continue
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673 break;;
3674 * ) break;;
3675 esac
3676 done
3677 else $as_nop
3678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3681 See \`config.log' for more details" "$LINENO" 5; }
3682 fi
3683 rm -f conftest conftest$ac_cv_exeext
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3685 printf "%s\n" "$ac_cv_exeext" >&6; }
3686
3687 rm -f conftest.$ac_ext
3688 EXEEXT=$ac_cv_exeext
3689 ac_exeext=$EXEEXT
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 #include <stdio.h>
3693 int
3694 main (void)
3695 {
3696 FILE *f = fopen ("conftest.out", "w");
3697 return ferror (f) || fclose (f) != 0;
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 ac_clean_files="$ac_clean_files conftest.out"
3704 # Check that the compiler produces executables we can run. If not, either
3705 # the compiler is broken, or we cross compile.
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3707 printf %s "checking whether we are cross compiling... " >&6; }
3708 if test "$cross_compiling" != yes; then
3709 { { ac_try="$ac_link"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 printf "%s\n" "$ac_try_echo"; } >&5
3716 (eval "$ac_link") 2>&5
3717 ac_status=$?
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }
3720 if { ac_try='./conftest$ac_cv_exeext'
3721 { { case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 printf "%s\n" "$ac_try_echo"; } >&5
3727 (eval "$ac_try") 2>&5
3728 ac_status=$?
3729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; }; then
3731 cross_compiling=no
3732 else
3733 if test "$cross_compiling" = maybe; then
3734 cross_compiling=yes
3735 else
3736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error 77 "cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details" "$LINENO" 5; }
3741 fi
3742 fi
3743 fi
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3745 printf "%s\n" "$cross_compiling" >&6; }
3746
3747 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3748 ac_clean_files=$ac_clean_files_save
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3750 printf %s "checking for suffix of object files... " >&6; }
3751 if test ${ac_cv_objext+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 int
3759 main (void)
3760 {
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.o conftest.obj
3767 if { { ac_try="$ac_compile"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 printf "%s\n" "$ac_try_echo"; } >&5
3774 (eval "$ac_compile") 2>&5
3775 ac_status=$?
3776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 then :
3779 for ac_file in conftest.o conftest.obj conftest.*; do
3780 test -f "$ac_file" || continue;
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3784 break;;
3785 esac
3786 done
3787 else $as_nop
3788 printf "%s\n" "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error $? "cannot compute suffix of object files: cannot compile
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 fi
3796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3797 fi
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3799 printf "%s\n" "$ac_cv_objext" >&6; }
3800 OBJEXT=$ac_cv_objext
3801 ac_objext=$OBJEXT
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3803 printf %s "checking whether the compiler supports GNU C... " >&6; }
3804 if test ${ac_cv_c_compiler_gnu+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else $as_nop
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810
3811 int
3812 main (void)
3813 {
3814 #ifndef __GNUC__
3815 choke me
3816 #endif
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"
3823 then :
3824 ac_compiler_gnu=yes
3825 else $as_nop
3826 ac_compiler_gnu=no
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3829 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3830
3831 fi
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3833 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836 if test $ac_compiler_gnu = yes; then
3837 GCC=yes
3838 else
3839 GCC=
3840 fi
3841 ac_test_CFLAGS=${CFLAGS+y}
3842 ac_save_CFLAGS=$CFLAGS
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844 printf %s "checking whether $CC accepts -g... " >&6; }
3845 if test ${ac_cv_prog_cc_g+y}
3846 then :
3847 printf %s "(cached) " >&6
3848 else $as_nop
3849 ac_save_c_werror_flag=$ac_c_werror_flag
3850 ac_c_werror_flag=yes
3851 ac_cv_prog_cc_g=no
3852 CFLAGS="-g"
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855
3856 int
3857 main (void)
3858 {
3859
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 if ac_fn_c_try_compile "$LINENO"
3865 then :
3866 ac_cv_prog_cc_g=yes
3867 else $as_nop
3868 CFLAGS=""
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main (void)
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"
3881 then :
3882
3883 else $as_nop
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3885 CFLAGS="-g"
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main (void)
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"
3898 then :
3899 ac_cv_prog_cc_g=yes
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3906 ac_c_werror_flag=$ac_save_c_werror_flag
3907 fi
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3909 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3910 if test $ac_test_CFLAGS; then
3911 CFLAGS=$ac_save_CFLAGS
3912 elif test $ac_cv_prog_cc_g = yes; then
3913 if test "$GCC" = yes; then
3914 CFLAGS="-g -O2"
3915 else
3916 CFLAGS="-g"
3917 fi
3918 else
3919 if test "$GCC" = yes; then
3920 CFLAGS="-O2"
3921 else
3922 CFLAGS=
3923 fi
3924 fi
3925 ac_prog_cc_stdc=no
3926 if test x$ac_prog_cc_stdc = xno
3927 then :
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3929 printf %s "checking for $CC option to enable C11 features... " >&6; }
3930 if test ${ac_cv_prog_cc_c11+y}
3931 then :
3932 printf %s "(cached) " >&6
3933 else $as_nop
3934 ac_cv_prog_cc_c11=no
3935 ac_save_CC=$CC
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 $ac_c_conftest_c11_program
3939 _ACEOF
3940 for ac_arg in '' -std=gnu11
3941 do
3942 CC="$ac_save_CC $ac_arg"
3943 if ac_fn_c_try_compile "$LINENO"
3944 then :
3945 ac_cv_prog_cc_c11=$ac_arg
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.beam
3948 test "x$ac_cv_prog_cc_c11" != "xno" && break
3949 done
3950 rm -f conftest.$ac_ext
3951 CC=$ac_save_CC
3952 fi
3953
3954 if test "x$ac_cv_prog_cc_c11" = xno
3955 then :
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3957 printf "%s\n" "unsupported" >&6; }
3958 else $as_nop
3959 if test "x$ac_cv_prog_cc_c11" = x
3960 then :
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3962 printf "%s\n" "none needed" >&6; }
3963 else $as_nop
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3965 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3966 CC="$CC $ac_cv_prog_cc_c11"
3967 fi
3968 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3969 ac_prog_cc_stdc=c11
3970 fi
3971 fi
3972 if test x$ac_prog_cc_stdc = xno
3973 then :
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3975 printf %s "checking for $CC option to enable C99 features... " >&6; }
3976 if test ${ac_cv_prog_cc_c99+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else $as_nop
3980 ac_cv_prog_cc_c99=no
3981 ac_save_CC=$CC
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 $ac_c_conftest_c99_program
3985 _ACEOF
3986 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3987 do
3988 CC="$ac_save_CC $ac_arg"
3989 if ac_fn_c_try_compile "$LINENO"
3990 then :
3991 ac_cv_prog_cc_c99=$ac_arg
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.beam
3994 test "x$ac_cv_prog_cc_c99" != "xno" && break
3995 done
3996 rm -f conftest.$ac_ext
3997 CC=$ac_save_CC
3998 fi
3999
4000 if test "x$ac_cv_prog_cc_c99" = xno
4001 then :
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 printf "%s\n" "unsupported" >&6; }
4004 else $as_nop
4005 if test "x$ac_cv_prog_cc_c99" = x
4006 then :
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4008 printf "%s\n" "none needed" >&6; }
4009 else $as_nop
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4011 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4012 CC="$CC $ac_cv_prog_cc_c99"
4013 fi
4014 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4015 ac_prog_cc_stdc=c99
4016 fi
4017 fi
4018 if test x$ac_prog_cc_stdc = xno
4019 then :
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4021 printf %s "checking for $CC option to enable C89 features... " >&6; }
4022 if test ${ac_cv_prog_cc_c89+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else $as_nop
4026 ac_cv_prog_cc_c89=no
4027 ac_save_CC=$CC
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030 $ac_c_conftest_c89_program
4031 _ACEOF
4032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4033 do
4034 CC="$ac_save_CC $ac_arg"
4035 if ac_fn_c_try_compile "$LINENO"
4036 then :
4037 ac_cv_prog_cc_c89=$ac_arg
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.beam
4040 test "x$ac_cv_prog_cc_c89" != "xno" && break
4041 done
4042 rm -f conftest.$ac_ext
4043 CC=$ac_save_CC
4044 fi
4045
4046 if test "x$ac_cv_prog_cc_c89" = xno
4047 then :
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4049 printf "%s\n" "unsupported" >&6; }
4050 else $as_nop
4051 if test "x$ac_cv_prog_cc_c89" = x
4052 then :
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054 printf "%s\n" "none needed" >&6; }
4055 else $as_nop
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4057 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4058 CC="$CC $ac_cv_prog_cc_c89"
4059 fi
4060 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4061 ac_prog_cc_stdc=c89
4062 fi
4063 fi
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4078 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4079 if test ${am_cv_prog_cc_c_o+y}
4080 then :
4081 printf %s "(cached) " >&6
4082 else $as_nop
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085
4086 int
4087 main (void)
4088 {
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 # Make sure it works both with $CC and with simple cc.
4095 # Following AC_PROG_CC_C_O, we do the test twice because some
4096 # compilers refuse to overwrite an existing .o file with -o,
4097 # though they will create one.
4098 am_cv_prog_cc_c_o=yes
4099 for am_i in 1 2; do
4100 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4101 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } \
4105 && test -f conftest2.$ac_objext; then
4106 : OK
4107 else
4108 am_cv_prog_cc_c_o=no
4109 break
4110 fi
4111 done
4112 rm -f core conftest*
4113 unset am_i
4114 fi
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4116 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4117 if test "$am_cv_prog_cc_c_o" != yes; then
4118 # Losing compiler, so override with the script.
4119 # FIXME: It is wrong to rewrite CC.
4120 # But if we don't then we get into trouble of one sort or another.
4121 # A longer-term fix would be to have automake use am__CC in this case,
4122 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4123 CC="$am_aux_dir/compile $CC"
4124 fi
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131
4132 depcc="$CC" am_compiler_list=
4133
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4135 printf %s "checking dependency style of $depcc... " >&6; }
4136 if test ${am_cv_CC_dependencies_compiler_type+y}
4137 then :
4138 printf %s "(cached) " >&6
4139 else $as_nop
4140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4141 # We make a subdir and do the tests there. Otherwise we can end up
4142 # making bogus files that we don't know about and never remove. For
4143 # instance it was reported that on HP-UX the gcc test will end up
4144 # making a dummy file named 'D' -- because '-MD' means "put the output
4145 # in D".
4146 rm -rf conftest.dir
4147 mkdir conftest.dir
4148 # Copy depcomp to subdir because otherwise we won't find it if we're
4149 # using a relative directory.
4150 cp "$am_depcomp" conftest.dir
4151 cd conftest.dir
4152 # We will build objects and dependencies in a subdirectory because
4153 # it helps to detect inapplicable dependency modes. For instance
4154 # both Tru64's cc and ICC support -MD to output dependencies as a
4155 # side effect of compilation, but ICC will put the dependencies in
4156 # the current directory while Tru64 will put them in the object
4157 # directory.
4158 mkdir sub
4159
4160 am_cv_CC_dependencies_compiler_type=none
4161 if test "$am_compiler_list" = ""; then
4162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4163 fi
4164 am__universal=false
4165 case " $depcc " in #(
4166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4167 esac
4168
4169 for depmode in $am_compiler_list; do
4170 # Setup a source with many dependencies, because some compilers
4171 # like to wrap large dependency lists on column 80 (with \), and
4172 # we should not choose a depcomp mode which is confused by this.
4173 #
4174 # We need to recreate these files for each test, as the compiler may
4175 # overwrite some of them when testing with obscure command lines.
4176 # This happens at least with the AIX C compiler.
4177 : > sub/conftest.c
4178 for i in 1 2 3 4 5 6; do
4179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4181 # Solaris 10 /bin/sh.
4182 echo '/* dummy */' > sub/conftst$i.h
4183 done
4184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4185
4186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4187 # mode. It turns out that the SunPro C++ compiler does not properly
4188 # handle '-M -o', and we need to detect this. Also, some Intel
4189 # versions had trouble with output in subdirs.
4190 am__obj=sub/conftest.${OBJEXT-o}
4191 am__minus_obj="-o $am__obj"
4192 case $depmode in
4193 gcc)
4194 # This depmode causes a compiler race in universal mode.
4195 test "$am__universal" = false || continue
4196 ;;
4197 nosideeffect)
4198 # After this tag, mechanisms are not by side-effect, so they'll
4199 # only be used when explicitly requested.
4200 if test "x$enable_dependency_tracking" = xyes; then
4201 continue
4202 else
4203 break
4204 fi
4205 ;;
4206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4207 # This compiler won't grok '-c -o', but also, the minuso test has
4208 # not run yet. These depmodes are late enough in the game, and
4209 # so weak that their functioning should not be impacted.
4210 am__obj=conftest.${OBJEXT-o}
4211 am__minus_obj=
4212 ;;
4213 none) break ;;
4214 esac
4215 if depmode=$depmode \
4216 source=sub/conftest.c object=$am__obj \
4217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4219 >/dev/null 2>conftest.err &&
4220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4224 # icc doesn't choke on unknown options, it will just issue warnings
4225 # or remarks (even with -Werror). So we grep stderr for any message
4226 # that says an option was ignored or not supported.
4227 # When given -MP, icc 7.0 and 7.1 complain thusly:
4228 # icc: Command line warning: ignoring option '-M'; no argument required
4229 # The diagnosis changed in icc 8.0:
4230 # icc: Command line remark: option '-MP' not supported
4231 if (grep 'ignoring option' conftest.err ||
4232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4233 am_cv_CC_dependencies_compiler_type=$depmode
4234 break
4235 fi
4236 fi
4237 done
4238
4239 cd ..
4240 rm -rf conftest.dir
4241 else
4242 am_cv_CC_dependencies_compiler_type=none
4243 fi
4244
4245 fi
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4247 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4249
4250 if
4251 test "x$enable_dependency_tracking" != xno \
4252 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4253 am__fastdepCC_TRUE=
4254 am__fastdepCC_FALSE='#'
4255 else
4256 am__fastdepCC_TRUE='#'
4257 am__fastdepCC_FALSE=
4258 fi
4259
4260
4261
4262 ac_config_headers="$ac_config_headers config.h"
4263
4264 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tests/Makefile"
4265
4266
4267 # Check for pcap
4268
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
4270 printf %s "checking for pcap_create in -lpcap... " >&6; }
4271 if test ${ac_cv_lib_pcap_pcap_create+y}
4272 then :
4273 printf %s "(cached) " >&6
4274 else $as_nop
4275 ac_check_lib_save_LIBS=$LIBS
4276 LIBS="-lpcap $LIBS"
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279
4280 /* Override any GCC internal prototype to avoid an error.
4281 Use char because int might match the return type of a GCC
4282 builtin and then its argument prototype would still apply. */
4283 char pcap_create ();
4284 int
4285 main (void)
4286 {
4287 return pcap_create ();
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_link "$LINENO"
4293 then :
4294 ac_cv_lib_pcap_pcap_create=yes
4295 else $as_nop
4296 ac_cv_lib_pcap_pcap_create=no
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4299 conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4301 fi
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
4303 printf "%s\n" "$ac_cv_lib_pcap_pcap_create" >&6; }
4304 if test "x$ac_cv_lib_pcap_pcap_create" = xyes
4305 then :
4306 printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h
4307
4308 LIBS="-lpcap $LIBS"
4309
4310 fi
4311
4312 ac_header= ac_cache=
4313 for ac_item in $ac_header_c_list
4314 do
4315 if test $ac_cache; then
4316 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4317 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4318 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4319 fi
4320 ac_header= ac_cache=
4321 elif test $ac_header; then
4322 ac_cache=$ac_item
4323 else
4324 ac_header=$ac_item
4325 fi
4326 done
4327
4328
4329
4330
4331
4332
4333
4334
4335 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4336 then :
4337
4338 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4339
4340 fi
4341 for ac_header in pcap/pcap.h
4342 do :
4343 ac_fn_c_check_header_compile "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default"
4344 if test "x$ac_cv_header_pcap_pcap_h" = xyes
4345 then :
4346 printf "%s\n" "#define HAVE_PCAP_PCAP_H 1" >>confdefs.h
4347
4348 else $as_nop
4349 as_fn_error $? "You need to have libpcap development package installed" "$LINENO" 5
4350 fi
4351
4352 done
4353
4354 have_manpages=no
4355 # Check whether --enable-manpages was given.
4356 if test ${enable_manpages+y}
4357 then :
4358 enableval=$enable_manpages;
4359 fi
4360
4361 # Extract the first word of "xsltproc", so it can be a program name with args.
4362 set dummy xsltproc; ac_word=$2
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 printf %s "checking for $ac_word... " >&6; }
4365 if test ${ac_cv_path_XSLTPROC+y}
4366 then :
4367 printf %s "(cached) " >&6
4368 else $as_nop
4369 case $XSLTPROC in
4370 [\\/]* | ?:[\\/]*)
4371 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4372 ;;
4373 *)
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 case $as_dir in #(((
4379 '') as_dir=./ ;;
4380 */) ;;
4381 *) as_dir=$as_dir/ ;;
4382 esac
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4385 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
4386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 ;;
4394 esac
4395 fi
4396 XSLTPROC=$ac_cv_path_XSLTPROC
4397 if test -n "$XSLTPROC"; then
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4399 printf "%s\n" "$XSLTPROC" >&6; }
4400 else
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 printf "%s\n" "no" >&6; }
4403 fi
4404
4405
4406 if test "x$enable_manpages" != xno
4407 then :
4408
4409 have_manpages=yes
4410 if test -z "$XSLTPROC"
4411 then :
4412 as_fn_error $? "You need xsltproc for man pages" "$LINENO" 5
4413 fi
4414
4415 fi
4416 if test "x$have_manpages" = "xyes"; then
4417 ENABLE_MANPAGES_TRUE=
4418 ENABLE_MANPAGES_FALSE='#'
4419 else
4420 ENABLE_MANPAGES_TRUE='#'
4421 ENABLE_MANPAGES_FALSE=
4422 fi
4423
4424
4425 # Extract the first word of "iptables", so it can be a program name with args.
4426 set dummy iptables; ac_word=$2
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 printf %s "checking for $ac_word... " >&6; }
4429 if test ${ac_cv_prog_IPTABLES_CHECK+y}
4430 then :
4431 printf %s "(cached) " >&6
4432 else $as_nop
4433 if test -n "$IPTABLES_CHECK"; then
4434 ac_cv_prog_IPTABLES_CHECK="$IPTABLES_CHECK" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 as_dummy=""$PATH:/sbin:/usr/sbin""
4438 for as_dir in $as_dummy
4439 do
4440 IFS=$as_save_IFS
4441 case $as_dir in #(((
4442 '') as_dir=./ ;;
4443 */) ;;
4444 *) as_dir=$as_dir/ ;;
4445 esac
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_IPTABLES_CHECK="yes"
4449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 test -z "$ac_cv_prog_IPTABLES_CHECK" && ac_cv_prog_IPTABLES_CHECK="no"
4457 fi
4458 fi
4459 IPTABLES_CHECK=$ac_cv_prog_IPTABLES_CHECK
4460 if test -n "$IPTABLES_CHECK"; then
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPTABLES_CHECK" >&5
4462 printf "%s\n" "$IPTABLES_CHECK" >&6; }
4463 else
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 printf "%s\n" "no" >&6; }
4466 fi
4467
4468
4469 if test x"$IPTABLES_CHECK" != x"yes"; then
4470 as_fn_error $? "You need to have iptables installed" "$LINENO" 5
4471 fi
4472
4473 # Check for libnl
4474
4475
4476
4477
4478
4479
4480
4481 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 printf %s "checking for $ac_word... " >&6; }
4487 if test ${ac_cv_path_PKG_CONFIG+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else $as_nop
4491 case $PKG_CONFIG in
4492 [\\/]* | ?:[\\/]*)
4493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4494 ;;
4495 *)
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 case $as_dir in #(((
4501 '') as_dir=./ ;;
4502 */) ;;
4503 *) as_dir=$as_dir/ ;;
4504 esac
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4507 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 ;;
4516 esac
4517 fi
4518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4519 if test -n "$PKG_CONFIG"; then
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4521 printf "%s\n" "$PKG_CONFIG" >&6; }
4522 else
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 printf "%s\n" "no" >&6; }
4525 fi
4526
4527
4528 fi
4529 if test -z "$ac_cv_path_PKG_CONFIG"; then
4530 ac_pt_PKG_CONFIG=$PKG_CONFIG
4531 # Extract the first word of "pkg-config", so it can be a program name with args.
4532 set dummy pkg-config; ac_word=$2
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 printf %s "checking for $ac_word... " >&6; }
4535 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4536 then :
4537 printf %s "(cached) " >&6
4538 else $as_nop
4539 case $ac_pt_PKG_CONFIG in
4540 [\\/]* | ?:[\\/]*)
4541 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4542 ;;
4543 *)
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 case $as_dir in #(((
4549 '') as_dir=./ ;;
4550 */) ;;
4551 *) as_dir=$as_dir/ ;;
4552 esac
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4555 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 ;;
4564 esac
4565 fi
4566 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4567 if test -n "$ac_pt_PKG_CONFIG"; then
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4569 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4570 else
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 printf "%s\n" "no" >&6; }
4573 fi
4574
4575 if test "x$ac_pt_PKG_CONFIG" = x; then
4576 PKG_CONFIG=""
4577 else
4578 case $cross_compiling:$ac_tool_warned in
4579 yes:)
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582 ac_tool_warned=yes ;;
4583 esac
4584 PKG_CONFIG=$ac_pt_PKG_CONFIG
4585 fi
4586 else
4587 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4588 fi
4589
4590 fi
4591 if test -n "$PKG_CONFIG"; then
4592 _pkg_min_version=0.9.0
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4594 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4595 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597 printf "%s\n" "yes" >&6; }
4598 else
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 printf "%s\n" "no" >&6; }
4601 PKG_CONFIG=""
4602 fi
4603 fi
4604
4605 pkg_failed=no
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnl-route-3.0" >&5
4607 printf %s "checking for libnl-route-3.0... " >&6; }
4608
4609 if test -n "$LIBNL_CFLAGS"; then
4610 pkg_cv_LIBNL_CFLAGS="$LIBNL_CFLAGS"
4611 elif test -n "$PKG_CONFIG"; then
4612 if test -n "$PKG_CONFIG" && \
4613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
4614 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
4615 ac_status=$?
4616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }; then
4618 pkg_cv_LIBNL_CFLAGS=`$PKG_CONFIG --cflags "libnl-route-3.0" 2>/dev/null`
4619 test "x$?" != "x0" && pkg_failed=yes
4620 else
4621 pkg_failed=yes
4622 fi
4623 else
4624 pkg_failed=untried
4625 fi
4626 if test -n "$LIBNL_LIBS"; then
4627 pkg_cv_LIBNL_LIBS="$LIBNL_LIBS"
4628 elif test -n "$PKG_CONFIG"; then
4629 if test -n "$PKG_CONFIG" && \
4630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
4631 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
4632 ac_status=$?
4633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }; then
4635 pkg_cv_LIBNL_LIBS=`$PKG_CONFIG --libs "libnl-route-3.0" 2>/dev/null`
4636 test "x$?" != "x0" && pkg_failed=yes
4637 else
4638 pkg_failed=yes
4639 fi
4640 else
4641 pkg_failed=untried
4642 fi
4643
4644
4645
4646 if test $pkg_failed = yes; then
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 printf "%s\n" "no" >&6; }
4649
4650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4651 _pkg_short_errors_supported=yes
4652 else
4653 _pkg_short_errors_supported=no
4654 fi
4655 if test $_pkg_short_errors_supported = yes; then
4656 LIBNL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-route-3.0" 2>&1`
4657 else
4658 LIBNL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-route-3.0" 2>&1`
4659 fi
4660 # Put the nasty error message in config.log where it belongs
4661 echo "$LIBNL_PKG_ERRORS" >&5
4662
4663 as_fn_error $? "Package requirements (libnl-route-3.0) were not met:
4664
4665 $LIBNL_PKG_ERRORS
4666
4667 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4668 installed software in a non-standard prefix.
4669
4670 Alternatively, you may set the environment variables LIBNL_CFLAGS
4671 and LIBNL_LIBS to avoid the need to call pkg-config.
4672 See the pkg-config man page for more details." "$LINENO" 5
4673 elif test $pkg_failed = untried; then
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 printf "%s\n" "no" >&6; }
4676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4679 is in your PATH or set the PKG_CONFIG environment variable to the full
4680 path to pkg-config.
4681
4682 Alternatively, you may set the environment variables LIBNL_CFLAGS
4683 and LIBNL_LIBS to avoid the need to call pkg-config.
4684 See the pkg-config man page for more details.
4685
4686 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4687 See \`config.log' for more details" "$LINENO" 5; }
4688 else
4689 LIBNL_CFLAGS=$pkg_cv_LIBNL_CFLAGS
4690 LIBNL_LIBS=$pkg_cv_LIBNL_LIBS
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692 printf "%s\n" "yes" >&6; }
4693
4694 fi
4695
4696 cat >confcache <<\_ACEOF
4697 # This file is a shell script that caches the results of configure
4698 # tests run on this system so they can be shared between configure
4699 # scripts and configure runs, see configure's option --config-cache.
4700 # It is not useful on other systems. If it contains results you don't
4701 # want to keep, you may remove or edit it.
4702 #
4703 # config.status only pays attention to the cache file if you give it
4704 # the --recheck option to rerun configure.
4705 #
4706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4708 # following values.
4709
4710 _ACEOF
4711
4712 # The following way of writing the cache mishandles newlines in values,
4713 # but we know of no workaround that is simple, portable, and efficient.
4714 # So, we kill variables containing newlines.
4715 # Ultrix sh set writes to stderr and can't be redirected directly,
4716 # and sets the high bit in the cache file unless we assign to the vars.
4717 (
4718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4719 eval ac_val=\$$ac_var
4720 case $ac_val in #(
4721 *${as_nl}*)
4722 case $ac_var in #(
4723 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4724 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4725 esac
4726 case $ac_var in #(
4727 _ | IFS | as_nl) ;; #(
4728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4729 *) { eval $ac_var=; unset $ac_var;} ;;
4730 esac ;;
4731 esac
4732 done
4733
4734 (set) 2>&1 |
4735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4736 *${as_nl}ac_space=\ *)
4737 # `set' does not quote correctly, so add quotes: double-quote
4738 # substitution turns \\\\ into \\, and sed turns \\ into \.
4739 sed -n \
4740 "s/'/'\\\\''/g;
4741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4742 ;; #(
4743 *)
4744 # `set' quotes correctly as required by POSIX, so do not add quotes.
4745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4746 ;;
4747 esac |
4748 sort
4749 ) |
4750 sed '
4751 /^ac_cv_env_/b end
4752 t clear
4753 :clear
4754 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4755 t end
4756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4757 :end' >>confcache
4758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4759 if test -w "$cache_file"; then
4760 if test "x$cache_file" != "x/dev/null"; then
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4762 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4763 if test ! -f "$cache_file" || test -h "$cache_file"; then
4764 cat confcache >"$cache_file"
4765 else
4766 case $cache_file in #(
4767 */* | ?:*)
4768 mv -f confcache "$cache_file"$$ &&
4769 mv -f "$cache_file"$$ "$cache_file" ;; #(
4770 *)
4771 mv -f confcache "$cache_file" ;;
4772 esac
4773 fi
4774 fi
4775 else
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4777 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4778 fi
4779 fi
4780 rm -f confcache
4781
4782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4783 # Let make expand exec_prefix.
4784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4785
4786 DEFS=-DHAVE_CONFIG_H
4787
4788 ac_libobjs=
4789 ac_ltlibobjs=
4790 U=
4791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4792 # 1. Remove the extension, and $U if already installed.
4793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4794 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4796 # will be set to the directory where LIBOBJS objects are built.
4797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4799 done
4800 LIBOBJS=$ac_libobjs
4801
4802 LTLIBOBJS=$ac_ltlibobjs
4803
4804
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4806 printf %s "checking that generated files are newer than configure... " >&6; }
4807 if test -n "$am_sleep_pid"; then
4808 # Hide warnings about reused PIDs.
4809 wait $am_sleep_pid 2>/dev/null
4810 fi
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4812 printf "%s\n" "done" >&6; }
4813 if test -n "$EXEEXT"; then
4814 am__EXEEXT_TRUE=
4815 am__EXEEXT_FALSE='#'
4816 else
4817 am__EXEEXT_TRUE='#'
4818 am__EXEEXT_FALSE=
4819 fi
4820
4821 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4822 as_fn_error $? "conditional \"AMDEP\" was never defined.
4823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4824 fi
4825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4826 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4828 fi
4829 if test -z "${ENABLE_MANPAGES_TRUE}" && test -z "${ENABLE_MANPAGES_FALSE}"; then
4830 as_fn_error $? "conditional \"ENABLE_MANPAGES\" was never defined.
4831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4832 fi
4833
4834 : "${CONFIG_STATUS=./config.status}"
4835 ac_write_fail=0
4836 ac_clean_files_save=$ac_clean_files
4837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4839 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4840 as_write_fail=0
4841 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4842 #! $SHELL
4843 # Generated by $as_me.
4844 # Run this file to recreate the current configuration.
4845 # Compiler output produced by configure, useful for debugging
4846 # configure, is in config.log if it exists.
4847
4848 debug=false
4849 ac_cs_recheck=false
4850 ac_cs_silent=false
4851
4852 SHELL=\${CONFIG_SHELL-$SHELL}
4853 export SHELL
4854 _ASEOF
4855 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4856 ## -------------------- ##
4857 ## M4sh Initialization. ##
4858 ## -------------------- ##
4859
4860 # Be more Bourne compatible
4861 DUALCASE=1; export DUALCASE # for MKS sh
4862 as_nop=:
4863 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4864 then :
4865 emulate sh
4866 NULLCMD=:
4867 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4868 # is contrary to our usage. Disable this feature.
4869 alias -g '${1+"$@"}'='"$@"'
4870 setopt NO_GLOB_SUBST
4871 else $as_nop
4872 case `(set -o) 2>/dev/null` in #(
4873 *posix*) :
4874 set -o posix ;; #(
4875 *) :
4876 ;;
4877 esac
4878 fi
4879
4880
4881
4882 # Reset variables that may have inherited troublesome values from
4883 # the environment.
4884
4885 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4886 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4887 # side effect of setting IFS to empty, thus disabling word splitting.)
4888 # Quoting is to prevent editors from complaining about space-tab.
4889 as_nl='
4890 '
4891 export as_nl
4892 IFS=" "" $as_nl"
4893
4894 PS1='$ '
4895 PS2='> '
4896 PS4='+ '
4897
4898 # Ensure predictable behavior from utilities with locale-dependent output.
4899 LC_ALL=C
4900 export LC_ALL
4901 LANGUAGE=C
4902 export LANGUAGE
4903
4904 # We cannot yet rely on "unset" to work, but we need these variables
4905 # to be unset--not just set to an empty or harmless value--now, to
4906 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4907 # also avoids known problems related to "unset" and subshell syntax
4908 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4909 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4910 do eval test \${$as_var+y} \
4911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4912 done
4913
4914 # Ensure that fds 0, 1, and 2 are open.
4915 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4916 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4917 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4918
4919 # The user is always right.
4920 if ${PATH_SEPARATOR+false} :; then
4921 PATH_SEPARATOR=:
4922 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4923 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4924 PATH_SEPARATOR=';'
4925 }
4926 fi
4927
4928
4929 # Find who we are. Look in the path if we contain no directory separator.
4930 as_myself=
4931 case $0 in #((
4932 *[\\/]* ) as_myself=$0 ;;
4933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 case $as_dir in #(((
4938 '') as_dir=./ ;;
4939 */) ;;
4940 *) as_dir=$as_dir/ ;;
4941 esac
4942 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4943 done
4944 IFS=$as_save_IFS
4945
4946 ;;
4947 esac
4948 # We did not find ourselves, most probably we were run as `sh COMMAND'
4949 # in which case we are not to be found in the path.
4950 if test "x$as_myself" = x; then
4951 as_myself=$0
4952 fi
4953 if test ! -f "$as_myself"; then
4954 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4955 exit 1
4956 fi
4957
4958
4959
4960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4961 # ----------------------------------------
4962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4964 # script with STATUS, using 1 if that was 0.
4965 as_fn_error ()
4966 {
4967 as_status=$1; test $as_status -eq 0 && as_status=1
4968 if test "$4"; then
4969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4971 fi
4972 printf "%s\n" "$as_me: error: $2" >&2
4973 as_fn_exit $as_status
4974 } # as_fn_error
4975
4976
4977
4978 # as_fn_set_status STATUS
4979 # -----------------------
4980 # Set $? to STATUS, without forking.
4981 as_fn_set_status ()
4982 {
4983 return $1
4984 } # as_fn_set_status
4985
4986 # as_fn_exit STATUS
4987 # -----------------
4988 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4989 as_fn_exit ()
4990 {
4991 set +e
4992 as_fn_set_status $1
4993 exit $1
4994 } # as_fn_exit
4995
4996 # as_fn_unset VAR
4997 # ---------------
4998 # Portably unset VAR.
4999 as_fn_unset ()
5000 {
5001 { eval $1=; unset $1;}
5002 }
5003 as_unset=as_fn_unset
5004
5005 # as_fn_append VAR VALUE
5006 # ----------------------
5007 # Append the text in VALUE to the end of the definition contained in VAR. Take
5008 # advantage of any shell optimizations that allow amortized linear growth over
5009 # repeated appends, instead of the typical quadratic growth present in naive
5010 # implementations.
5011 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5012 then :
5013 eval 'as_fn_append ()
5014 {
5015 eval $1+=\$2
5016 }'
5017 else $as_nop
5018 as_fn_append ()
5019 {
5020 eval $1=\$$1\$2
5021 }
5022 fi # as_fn_append
5023
5024 # as_fn_arith ARG...
5025 # ------------------
5026 # Perform arithmetic evaluation on the ARGs, and store the result in the
5027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5028 # must be portable across $(()) and expr.
5029 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5030 then :
5031 eval 'as_fn_arith ()
5032 {
5033 as_val=$(( $* ))
5034 }'
5035 else $as_nop
5036 as_fn_arith ()
5037 {
5038 as_val=`expr "$@" || test $? -eq 1`
5039 }
5040 fi # as_fn_arith
5041
5042
5043 if expr a : '\(a\)' >/dev/null 2>&1 &&
5044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5045 as_expr=expr
5046 else
5047 as_expr=false
5048 fi
5049
5050 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5051 as_basename=basename
5052 else
5053 as_basename=false
5054 fi
5055
5056 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5057 as_dirname=dirname
5058 else
5059 as_dirname=false
5060 fi
5061
5062 as_me=`$as_basename -- "$0" ||
5063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5064 X"$0" : 'X\(//\)$' \| \
5065 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5066 printf "%s\n" X/"$0" |
5067 sed '/^.*\/\([^/][^/]*\)\/*$/{
5068 s//\1/
5069 q
5070 }
5071 /^X\/\(\/\/\)$/{
5072 s//\1/
5073 q
5074 }
5075 /^X\/\(\/\).*/{
5076 s//\1/
5077 q
5078 }
5079 s/.*/./; q'`
5080
5081 # Avoid depending upon Character Ranges.
5082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5085 as_cr_digits='0123456789'
5086 as_cr_alnum=$as_cr_Letters$as_cr_digits
5087
5088
5089 # Determine whether it's possible to make 'echo' print without a newline.
5090 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5091 # for compatibility with existing Makefiles.
5092 ECHO_C= ECHO_N= ECHO_T=
5093 case `echo -n x` in #(((((
5094 -n*)
5095 case `echo 'xy\c'` in
5096 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5097 xy) ECHO_C='\c';;
5098 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5099 ECHO_T=' ';;
5100 esac;;
5101 *)
5102 ECHO_N='-n';;
5103 esac
5104
5105 # For backward compatibility with old third-party macros, we provide
5106 # the shell variables $as_echo and $as_echo_n. New code should use
5107 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5108 as_echo='printf %s\n'
5109 as_echo_n='printf %s'
5110
5111 rm -f conf$$ conf$$.exe conf$$.file
5112 if test -d conf$$.dir; then
5113 rm -f conf$$.dir/conf$$.file
5114 else
5115 rm -f conf$$.dir
5116 mkdir conf$$.dir 2>/dev/null
5117 fi
5118 if (echo >conf$$.file) 2>/dev/null; then
5119 if ln -s conf$$.file conf$$ 2>/dev/null; then
5120 as_ln_s='ln -s'
5121 # ... but there are two gotchas:
5122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5124 # In both cases, we have to default to `cp -pR'.
5125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5126 as_ln_s='cp -pR'
5127 elif ln conf$$.file conf$$ 2>/dev/null; then
5128 as_ln_s=ln
5129 else
5130 as_ln_s='cp -pR'
5131 fi
5132 else
5133 as_ln_s='cp -pR'
5134 fi
5135 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5136 rmdir conf$$.dir 2>/dev/null
5137
5138
5139 # as_fn_mkdir_p
5140 # -------------
5141 # Create "$as_dir" as a directory, including parents if necessary.
5142 as_fn_mkdir_p ()
5143 {
5144
5145 case $as_dir in #(
5146 -*) as_dir=./$as_dir;;
5147 esac
5148 test -d "$as_dir" || eval $as_mkdir_p || {
5149 as_dirs=
5150 while :; do
5151 case $as_dir in #(
5152 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5153 *) as_qdir=$as_dir;;
5154 esac
5155 as_dirs="'$as_qdir' $as_dirs"
5156 as_dir=`$as_dirname -- "$as_dir" ||
5157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5158 X"$as_dir" : 'X\(//\)[^/]' \| \
5159 X"$as_dir" : 'X\(//\)$' \| \
5160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5161 printf "%s\n" X"$as_dir" |
5162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5163 s//\1/
5164 q
5165 }
5166 /^X\(\/\/\)[^/].*/{
5167 s//\1/
5168 q
5169 }
5170 /^X\(\/\/\)$/{
5171 s//\1/
5172 q
5173 }
5174 /^X\(\/\).*/{
5175 s//\1/
5176 q
5177 }
5178 s/.*/./; q'`
5179 test -d "$as_dir" && break
5180 done
5181 test -z "$as_dirs" || eval "mkdir $as_dirs"
5182 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5183
5184
5185 } # as_fn_mkdir_p
5186 if mkdir -p . 2>/dev/null; then
5187 as_mkdir_p='mkdir -p "$as_dir"'
5188 else
5189 test -d ./-p && rmdir ./-p
5190 as_mkdir_p=false
5191 fi
5192
5193
5194 # as_fn_executable_p FILE
5195 # -----------------------
5196 # Test if FILE is an executable regular file.
5197 as_fn_executable_p ()
5198 {
5199 test -f "$1" && test -x "$1"
5200 } # as_fn_executable_p
5201 as_test_x='test -x'
5202 as_executable_p=as_fn_executable_p
5203
5204 # Sed expression to map a string onto a valid CPP name.
5205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5206
5207 # Sed expression to map a string onto a valid variable name.
5208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5209
5210
5211 exec 6>&1
5212 ## ----------------------------------- ##
5213 ## Main body of $CONFIG_STATUS script. ##
5214 ## ----------------------------------- ##
5215 _ASEOF
5216 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5217
5218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5219 # Save the log message, to keep $0 and so on meaningful, and to
5220 # report actual input values of CONFIG_FILES etc. instead of their
5221 # values after options handling.
5222 ac_log="
5223 This file was extended by nsntrace $as_me 4, which was
5224 generated by GNU Autoconf 2.71. Invocation command line was
5225
5226 CONFIG_FILES = $CONFIG_FILES
5227 CONFIG_HEADERS = $CONFIG_HEADERS
5228 CONFIG_LINKS = $CONFIG_LINKS
5229 CONFIG_COMMANDS = $CONFIG_COMMANDS
5230 $ $0 $@
5231
5232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5233 "
5234
5235 _ACEOF
5236
5237 case $ac_config_files in *"
5238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5239 esac
5240
5241 case $ac_config_headers in *"
5242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5243 esac
5244
5245
5246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5247 # Files that config.status was made for.
5248 config_files="$ac_config_files"
5249 config_headers="$ac_config_headers"
5250 config_commands="$ac_config_commands"
5251
5252 _ACEOF
5253
5254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5255 ac_cs_usage="\
5256 \`$as_me' instantiates files and other configuration actions
5257 from templates according to the current configuration. Unless the files
5258 and actions are specified as TAGs, all are instantiated by default.
5259
5260 Usage: $0 [OPTION]... [TAG]...
5261
5262 -h, --help print this help, then exit
5263 -V, --version print version number and configuration settings, then exit
5264 --config print configuration, then exit
5265 -q, --quiet, --silent
5266 do not print progress messages
5267 -d, --debug don't remove temporary files
5268 --recheck update $as_me by reconfiguring in the same conditions
5269 --file=FILE[:TEMPLATE]
5270 instantiate the configuration file FILE
5271 --header=FILE[:TEMPLATE]
5272 instantiate the configuration header FILE
5273
5274 Configuration files:
5275 $config_files
5276
5277 Configuration headers:
5278 $config_headers
5279
5280 Configuration commands:
5281 $config_commands
5282
5283 Report bugs to <https://github.com/jonasdn/nsntrace/issues>."
5284
5285 _ACEOF
5286 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5287 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5289 ac_cs_config='$ac_cs_config_escaped'
5290 ac_cs_version="\\
5291 nsntrace config.status 4
5292 configured by $0, generated by GNU Autoconf 2.71,
5293 with options \\"\$ac_cs_config\\"
5294
5295 Copyright (C) 2021 Free Software Foundation, Inc.
5296 This config.status script is free software; the Free Software Foundation
5297 gives unlimited permission to copy, distribute and modify it."
5298
5299 ac_pwd='$ac_pwd'
5300 srcdir='$srcdir'
5301 INSTALL='$INSTALL'
5302 MKDIR_P='$MKDIR_P'
5303 AWK='$AWK'
5304 test -n "\$AWK" || AWK=awk
5305 _ACEOF
5306
5307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5308 # The default lists apply if the user does not specify any file.
5309 ac_need_defaults=:
5310 while test $# != 0
5311 do
5312 case $1 in
5313 --*=?*)
5314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5315 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5316 ac_shift=:
5317 ;;
5318 --*=)
5319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5320 ac_optarg=
5321 ac_shift=:
5322 ;;
5323 *)
5324 ac_option=$1
5325 ac_optarg=$2
5326 ac_shift=shift
5327 ;;
5328 esac
5329
5330 case $ac_option in
5331 # Handling of the options.
5332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5333 ac_cs_recheck=: ;;
5334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5335 printf "%s\n" "$ac_cs_version"; exit ;;
5336 --config | --confi | --conf | --con | --co | --c )
5337 printf "%s\n" "$ac_cs_config"; exit ;;
5338 --debug | --debu | --deb | --de | --d | -d )
5339 debug=: ;;
5340 --file | --fil | --fi | --f )
5341 $ac_shift
5342 case $ac_optarg in
5343 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5344 '') as_fn_error $? "missing file argument" ;;
5345 esac
5346 as_fn_append CONFIG_FILES " '$ac_optarg'"
5347 ac_need_defaults=false;;
5348 --header | --heade | --head | --hea )
5349 $ac_shift
5350 case $ac_optarg in
5351 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5352 esac
5353 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5354 ac_need_defaults=false;;
5355 --he | --h)
5356 # Conflict between --help and --header
5357 as_fn_error $? "ambiguous option: \`$1'
5358 Try \`$0 --help' for more information.";;
5359 --help | --hel | -h )
5360 printf "%s\n" "$ac_cs_usage"; exit ;;
5361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5363 ac_cs_silent=: ;;
5364
5365 # This is an error.
5366 -*) as_fn_error $? "unrecognized option: \`$1'
5367 Try \`$0 --help' for more information." ;;
5368
5369 *) as_fn_append ac_config_targets " $1"
5370 ac_need_defaults=false ;;
5371
5372 esac
5373 shift
5374 done
5375
5376 ac_configure_extra_args=
5377
5378 if $ac_cs_silent; then
5379 exec 6>/dev/null
5380 ac_configure_extra_args="$ac_configure_extra_args --silent"
5381 fi
5382
5383 _ACEOF
5384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5385 if \$ac_cs_recheck; then
5386 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5387 shift
5388 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5389 CONFIG_SHELL='$SHELL'
5390 export CONFIG_SHELL
5391 exec "\$@"
5392 fi
5393
5394 _ACEOF
5395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5396 exec 5>>config.log
5397 {
5398 echo
5399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5400 ## Running $as_me. ##
5401 _ASBOX
5402 printf "%s\n" "$ac_log"
5403 } >&5
5404
5405 _ACEOF
5406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5407 #
5408 # INIT-COMMANDS
5409 #
5410 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5411
5412 _ACEOF
5413
5414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5415
5416 # Handling of arguments.
5417 for ac_config_target in $ac_config_targets
5418 do
5419 case $ac_config_target in
5420 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5421 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5423 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5424 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5425 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5426
5427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5428 esac
5429 done
5430
5431
5432 # If the user did not use the arguments to specify the items to instantiate,
5433 # then the envvar interface is used. Set only those that are not.
5434 # We use the long form for the default assignment because of an extremely
5435 # bizarre bug on SunOS 4.1.3.
5436 if $ac_need_defaults; then
5437 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5438 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5439 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
5440 fi
5441
5442 # Have a temporary directory for convenience. Make it in the build tree
5443 # simply because there is no reason against having it here, and in addition,
5444 # creating and moving files from /tmp can sometimes cause problems.
5445 # Hook for its removal unless debugging.
5446 # Note that there is a small window in which the directory will not be cleaned:
5447 # after its creation but before its name has been assigned to `$tmp'.
5448 $debug ||
5449 {
5450 tmp= ac_tmp=
5451 trap 'exit_status=$?
5452 : "${ac_tmp:=$tmp}"
5453 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5454 ' 0
5455 trap 'as_fn_exit 1' 1 2 13 15
5456 }
5457 # Create a (secure) tmp directory for tmp files.
5458
5459 {
5460 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5461 test -d "$tmp"
5462 } ||
5463 {
5464 tmp=./conf$$-$RANDOM
5465 (umask 077 && mkdir "$tmp")
5466 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5467 ac_tmp=$tmp
5468
5469 # Set up the scripts for CONFIG_FILES section.
5470 # No need to generate them if there are no CONFIG_FILES.
5471 # This happens for instance with `./config.status config.h'.
5472 if test -n "$CONFIG_FILES"; then
5473
5474
5475 ac_cr=`echo X | tr X '\015'`
5476 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5477 # But we know of no other shell where ac_cr would be empty at this
5478 # point, so we can use a bashism as a fallback.
5479 if test "x$ac_cr" = x; then
5480 eval ac_cr=\$\'\\r\'
5481 fi
5482 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5484 ac_cs_awk_cr='\\r'
5485 else
5486 ac_cs_awk_cr=$ac_cr
5487 fi
5488
5489 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5490 _ACEOF
5491
5492
5493 {
5494 echo "cat >conf$$subs.awk <<_ACEOF" &&
5495 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5496 echo "_ACEOF"
5497 } >conf$$subs.sh ||
5498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5500 ac_delim='%!_!# '
5501 for ac_last_try in false false false false false :; do
5502 . ./conf$$subs.sh ||
5503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5504
5505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5506 if test $ac_delim_n = $ac_delim_num; then
5507 break
5508 elif $ac_last_try; then
5509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5510 else
5511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5512 fi
5513 done
5514 rm -f conf$$subs.sh
5515
5516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5517 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5518 _ACEOF
5519 sed -n '
5520 h
5521 s/^/S["/; s/!.*/"]=/
5522 p
5523 g
5524 s/^[^!]*!//
5525 :repl
5526 t repl
5527 s/'"$ac_delim"'$//
5528 t delim
5529 :nl
5530 h
5531 s/\(.\{148\}\)..*/\1/
5532 t more1
5533 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5534 p
5535 n
5536 b repl
5537 :more1
5538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5539 p
5540 g
5541 s/.\{148\}//
5542 t nl
5543 :delim
5544 h
5545 s/\(.\{148\}\)..*/\1/
5546 t more2
5547 s/["\\]/\\&/g; s/^/"/; s/$/"/
5548 p
5549 b
5550 :more2
5551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5552 p
5553 g
5554 s/.\{148\}//
5555 t delim
5556 ' <conf$$subs.awk | sed '
5557 /^[^""]/{
5558 N
5559 s/\n//
5560 }
5561 ' >>$CONFIG_STATUS || ac_write_fail=1
5562 rm -f conf$$subs.awk
5563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5564 _ACAWK
5565 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5566 for (key in S) S_is_set[key] = 1
5567 FS = ""
5568
5569 }
5570 {
5571 line = $ 0
5572 nfields = split(line, field, "@")
5573 substed = 0
5574 len = length(field[1])
5575 for (i = 2; i < nfields; i++) {
5576 key = field[i]
5577 keylen = length(key)
5578 if (S_is_set[key]) {
5579 value = S[key]
5580 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5581 len += length(value) + length(field[++i])
5582 substed = 1
5583 } else
5584 len += 1 + keylen
5585 }
5586
5587 print line
5588 }
5589
5590 _ACAWK
5591 _ACEOF
5592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5593 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5595 else
5596 cat
5597 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5599 _ACEOF
5600
5601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5603 # trailing colons and then remove the whole line if VPATH becomes empty
5604 # (actually we leave an empty line to preserve line numbers).
5605 if test "x$srcdir" = x.; then
5606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5607 h
5608 s///
5609 s/^/:/
5610 s/[ ]*$/:/
5611 s/:\$(srcdir):/:/g
5612 s/:\${srcdir}:/:/g
5613 s/:@srcdir@:/:/g
5614 s/^:*//
5615 s/:*$//
5616 x
5617 s/\(=[ ]*\).*/\1/
5618 G
5619 s/\n//
5620 s/^[^=]*=[ ]*$//
5621 }'
5622 fi
5623
5624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5625 fi # test -n "$CONFIG_FILES"
5626
5627 # Set up the scripts for CONFIG_HEADERS section.
5628 # No need to generate them if there are no CONFIG_HEADERS.
5629 # This happens for instance with `./config.status Makefile'.
5630 if test -n "$CONFIG_HEADERS"; then
5631 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5632 BEGIN {
5633 _ACEOF
5634
5635 # Transform confdefs.h into an awk script `defines.awk', embedded as
5636 # here-document in config.status, that substitutes the proper values into
5637 # config.h.in to produce config.h.
5638
5639 # Create a delimiter string that does not exist in confdefs.h, to ease
5640 # handling of long lines.
5641 ac_delim='%!_!# '
5642 for ac_last_try in false false :; do
5643 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5644 if test -z "$ac_tt"; then
5645 break
5646 elif $ac_last_try; then
5647 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5648 else
5649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5650 fi
5651 done
5652
5653 # For the awk script, D is an array of macro values keyed by name,
5654 # likewise P contains macro parameters if any. Preserve backslash
5655 # newline sequences.
5656
5657 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5658 sed -n '
5659 s/.\{148\}/&'"$ac_delim"'/g
5660 t rset
5661 :rset
5662 s/^[ ]*#[ ]*define[ ][ ]*/ /
5663 t def
5664 d
5665 :def
5666 s/\\$//
5667 t bsnl
5668 s/["\\]/\\&/g
5669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5670 D["\1"]=" \3"/p
5671 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5672 d
5673 :bsnl
5674 s/["\\]/\\&/g
5675 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5676 D["\1"]=" \3\\\\\\n"\\/p
5677 t cont
5678 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5679 t cont
5680 d
5681 :cont
5682 n
5683 s/.\{148\}/&'"$ac_delim"'/g
5684 t clear
5685 :clear
5686 s/\\$//
5687 t bsnlc
5688 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5689 d
5690 :bsnlc
5691 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5692 b cont
5693 ' <confdefs.h | sed '
5694 s/'"$ac_delim"'/"\\\
5695 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5696
5697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5698 for (key in D) D_is_set[key] = 1
5699 FS = ""
5700 }
5701 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5702 line = \$ 0
5703 split(line, arg, " ")
5704 if (arg[1] == "#") {
5705 defundef = arg[2]
5706 mac1 = arg[3]
5707 } else {
5708 defundef = substr(arg[1], 2)
5709 mac1 = arg[2]
5710 }
5711 split(mac1, mac2, "(") #)
5712 macro = mac2[1]
5713 prefix = substr(line, 1, index(line, defundef) - 1)
5714 if (D_is_set[macro]) {
5715 # Preserve the white space surrounding the "#".
5716 print prefix "define", macro P[macro] D[macro]
5717 next
5718 } else {
5719 # Replace #undef with comments. This is necessary, for example,
5720 # in the case of _POSIX_SOURCE, which is predefined and required
5721 # on some systems where configure will not decide to define it.
5722 if (defundef == "undef") {
5723 print "/*", prefix defundef, macro, "*/"
5724 next
5725 }
5726 }
5727 }
5728 { print }
5729 _ACAWK
5730 _ACEOF
5731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5732 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5733 fi # test -n "$CONFIG_HEADERS"
5734
5735
5736 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5737 shift
5738 for ac_tag
5739 do
5740 case $ac_tag in
5741 :[FHLC]) ac_mode=$ac_tag; continue;;
5742 esac
5743 case $ac_mode$ac_tag in
5744 :[FHL]*:*);;
5745 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5746 :[FH]-) ac_tag=-:-;;
5747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5748 esac
5749 ac_save_IFS=$IFS
5750 IFS=:
5751 set x $ac_tag
5752 IFS=$ac_save_IFS
5753 shift
5754 ac_file=$1
5755 shift
5756
5757 case $ac_mode in
5758 :L) ac_source=$1;;
5759 :[FH])
5760 ac_file_inputs=
5761 for ac_f
5762 do
5763 case $ac_f in
5764 -) ac_f="$ac_tmp/stdin";;
5765 *) # Look for the file first in the build tree, then in the source tree
5766 # (if the path is not absolute). The absolute path cannot be DOS-style,
5767 # because $ac_f cannot contain `:'.
5768 test -f "$ac_f" ||
5769 case $ac_f in
5770 [\\/$]*) false;;
5771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5772 esac ||
5773 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5774 esac
5775 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5776 as_fn_append ac_file_inputs " '$ac_f'"
5777 done
5778
5779 # Let's still pretend it is `configure' which instantiates (i.e., don't
5780 # use $as_me), people would be surprised to read:
5781 # /* config.h. Generated by config.status. */
5782 configure_input='Generated from '`
5783 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5784 `' by configure.'
5785 if test x"$ac_file" != x-; then
5786 configure_input="$ac_file. $configure_input"
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5788 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5789 fi
5790 # Neutralize special characters interpreted by sed in replacement strings.
5791 case $configure_input in #(
5792 *\&* | *\|* | *\\* )
5793 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5795 *) ac_sed_conf_input=$configure_input;;
5796 esac
5797
5798 case $ac_tag in
5799 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5801 esac
5802 ;;
5803 esac
5804
5805 ac_dir=`$as_dirname -- "$ac_file" ||
5806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5807 X"$ac_file" : 'X\(//\)[^/]' \| \
5808 X"$ac_file" : 'X\(//\)$' \| \
5809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5810 printf "%s\n" X"$ac_file" |
5811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5812 s//\1/
5813 q
5814 }
5815 /^X\(\/\/\)[^/].*/{
5816 s//\1/
5817 q
5818 }
5819 /^X\(\/\/\)$/{
5820 s//\1/
5821 q
5822 }
5823 /^X\(\/\).*/{
5824 s//\1/
5825 q
5826 }
5827 s/.*/./; q'`
5828 as_dir="$ac_dir"; as_fn_mkdir_p
5829 ac_builddir=.
5830
5831 case "$ac_dir" in
5832 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5833 *)
5834 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5835 # A ".." for each directory in $ac_dir_suffix.
5836 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5837 case $ac_top_builddir_sub in
5838 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5839 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5840 esac ;;
5841 esac
5842 ac_abs_top_builddir=$ac_pwd
5843 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5844 # for backward compatibility:
5845 ac_top_builddir=$ac_top_build_prefix
5846
5847 case $srcdir in
5848 .) # We are building in place.
5849 ac_srcdir=.
5850 ac_top_srcdir=$ac_top_builddir_sub
5851 ac_abs_top_srcdir=$ac_pwd ;;
5852 [\\/]* | ?:[\\/]* ) # Absolute name.
5853 ac_srcdir=$srcdir$ac_dir_suffix;
5854 ac_top_srcdir=$srcdir
5855 ac_abs_top_srcdir=$srcdir ;;
5856 *) # Relative name.
5857 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5858 ac_top_srcdir=$ac_top_build_prefix$srcdir
5859 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5860 esac
5861 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5862
5863
5864 case $ac_mode in
5865 :F)
5866 #
5867 # CONFIG_FILE
5868 #
5869
5870 case $INSTALL in
5871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5872 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5873 esac
5874 ac_MKDIR_P=$MKDIR_P
5875 case $MKDIR_P in
5876 [\\/$]* | ?:[\\/]* ) ;;
5877 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5878 esac
5879 _ACEOF
5880
5881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5882 # If the template does not know about datarootdir, expand it.
5883 # FIXME: This hack should be removed a few years after 2.60.
5884 ac_datarootdir_hack=; ac_datarootdir_seen=
5885 ac_sed_dataroot='
5886 /datarootdir/ {
5887 p
5888 q
5889 }
5890 /@datadir@/p
5891 /@docdir@/p
5892 /@infodir@/p
5893 /@localedir@/p
5894 /@mandir@/p'
5895 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5896 *datarootdir*) ac_datarootdir_seen=yes;;
5897 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5899 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5900 _ACEOF
5901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5902 ac_datarootdir_hack='
5903 s&@datadir@&$datadir&g
5904 s&@docdir@&$docdir&g
5905 s&@infodir@&$infodir&g
5906 s&@localedir@&$localedir&g
5907 s&@mandir@&$mandir&g
5908 s&\\\${datarootdir}&$datarootdir&g' ;;
5909 esac
5910 _ACEOF
5911
5912 # Neutralize VPATH when `$srcdir' = `.'.
5913 # Shell code in configure.ac might set extrasub.
5914 # FIXME: do we really want to maintain this feature?
5915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5916 ac_sed_extra="$ac_vpsub
5917 $extrasub
5918 _ACEOF
5919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5920 :t
5921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5922 s|@configure_input@|$ac_sed_conf_input|;t t
5923 s&@top_builddir@&$ac_top_builddir_sub&;t t
5924 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5925 s&@srcdir@&$ac_srcdir&;t t
5926 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5927 s&@top_srcdir@&$ac_top_srcdir&;t t
5928 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5929 s&@builddir@&$ac_builddir&;t t
5930 s&@abs_builddir@&$ac_abs_builddir&;t t
5931 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5932 s&@INSTALL@&$ac_INSTALL&;t t
5933 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5934 $ac_datarootdir_hack
5935 "
5936 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5938
5939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5944 which seems to be undefined. Please make sure it is defined" >&5
5945 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5946 which seems to be undefined. Please make sure it is defined" >&2;}
5947
5948 rm -f "$ac_tmp/stdin"
5949 case $ac_file in
5950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5952 esac \
5953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5954 ;;
5955 :H)
5956 #
5957 # CONFIG_HEADER
5958 #
5959 if test x"$ac_file" != x-; then
5960 {
5961 printf "%s\n" "/* $configure_input */" >&1 \
5962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5963 } >"$ac_tmp/config.h" \
5964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5967 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5968 else
5969 rm -f "$ac_file"
5970 mv "$ac_tmp/config.h" "$ac_file" \
5971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5972 fi
5973 else
5974 printf "%s\n" "/* $configure_input */" >&1 \
5975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5976 || as_fn_error $? "could not create -" "$LINENO" 5
5977 fi
5978 # Compute "$ac_file"'s index in $config_headers.
5979 _am_arg="$ac_file"
5980 _am_stamp_count=1
5981 for _am_header in $config_headers :; do
5982 case $_am_header in
5983 $_am_arg | $_am_arg:* )
5984 break ;;
5985 * )
5986 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5987 esac
5988 done
5989 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5990 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5991 X"$_am_arg" : 'X\(//\)[^/]' \| \
5992 X"$_am_arg" : 'X\(//\)$' \| \
5993 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5994 printf "%s\n" X"$_am_arg" |
5995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5996 s//\1/
5997 q
5998 }
5999 /^X\(\/\/\)[^/].*/{
6000 s//\1/
6001 q
6002 }
6003 /^X\(\/\/\)$/{
6004 s//\1/
6005 q
6006 }
6007 /^X\(\/\).*/{
6008 s//\1/
6009 q
6010 }
6011 s/.*/./; q'`/stamp-h$_am_stamp_count
6012 ;;
6013
6014 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6015 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
6016 ;;
6017 esac
6018
6019
6020 case $ac_file$ac_mode in
6021 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6022 # Older Autoconf quotes --file arguments for eval, but not when files
6023 # are listed without --file. Let's play safe and only enable the eval
6024 # if we detect the quoting.
6025 # TODO: see whether this extra hack can be removed once we start
6026 # requiring Autoconf 2.70 or later.
6027 case $CONFIG_FILES in #(
6028 *\'*) :
6029 eval set x "$CONFIG_FILES" ;; #(
6030 *) :
6031 set x $CONFIG_FILES ;; #(
6032 *) :
6033 ;;
6034 esac
6035 shift
6036 # Used to flag and report bootstrapping failures.
6037 am_rc=0
6038 for am_mf
6039 do
6040 # Strip MF so we end up with the name of the file.
6041 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
6042 # Check whether this is an Automake generated Makefile which includes
6043 # dependency-tracking related rules and includes.
6044 # Grep'ing the whole file directly is not great: AIX grep has a line
6045 # limit of 2048, but all sed's we know have understand at least 4000.
6046 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
6047 || continue
6048 am_dirpart=`$as_dirname -- "$am_mf" ||
6049 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6050 X"$am_mf" : 'X\(//\)[^/]' \| \
6051 X"$am_mf" : 'X\(//\)$' \| \
6052 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6053 printf "%s\n" X"$am_mf" |
6054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6055 s//\1/
6056 q
6057 }
6058 /^X\(\/\/\)[^/].*/{
6059 s//\1/
6060 q
6061 }
6062 /^X\(\/\/\)$/{
6063 s//\1/
6064 q
6065 }
6066 /^X\(\/\).*/{
6067 s//\1/
6068 q
6069 }
6070 s/.*/./; q'`
6071 am_filepart=`$as_basename -- "$am_mf" ||
6072 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
6073 X"$am_mf" : 'X\(//\)$' \| \
6074 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6075 printf "%s\n" X/"$am_mf" |
6076 sed '/^.*\/\([^/][^/]*\)\/*$/{
6077 s//\1/
6078 q
6079 }
6080 /^X\/\(\/\/\)$/{
6081 s//\1/
6082 q
6083 }
6084 /^X\/\(\/\).*/{
6085 s//\1/
6086 q
6087 }
6088 s/.*/./; q'`
6089 { echo "$as_me:$LINENO: cd "$am_dirpart" \
6090 && sed -e '/# am--include-marker/d' "$am_filepart" \
6091 | $MAKE -f - am--depfiles" >&5
6092 (cd "$am_dirpart" \
6093 && sed -e '/# am--include-marker/d' "$am_filepart" \
6094 | $MAKE -f - am--depfiles) >&5 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } || am_rc=$?
6098 done
6099 if test $am_rc -ne 0; then
6100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6102 as_fn_error $? "Something went wrong bootstrapping makefile fragments
6103 for automatic dependency tracking. If GNU make was not used, consider
6104 re-running the configure script with MAKE=\"gmake\" (or whatever is
6105 necessary). You can also try re-running configure with the
6106 '--disable-dependency-tracking' option to at least be able to build
6107 the package (albeit without support for automatic dependency tracking).
6108 See \`config.log' for more details" "$LINENO" 5; }
6109 fi
6110 { am_dirpart=; unset am_dirpart;}
6111 { am_filepart=; unset am_filepart;}
6112 { am_mf=; unset am_mf;}
6113 { am_rc=; unset am_rc;}
6114 rm -f conftest-deps.mk
6115 }
6116 ;;
6117
6118 esac
6119 done # for ac_tag
6120
6121
6122 as_fn_exit 0
6123 _ACEOF
6124 ac_clean_files=$ac_clean_files_save
6125
6126 test $ac_write_fail = 0 ||
6127 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6128
6129
6130 # configure is writing to config.log, and then calls config.status.
6131 # config.status does its own redirection, appending to config.log.
6132 # Unfortunately, on DOS this fails, as config.log is still kept open
6133 # by configure, so config.status won't be able to write to it; its
6134 # output is simply discarded. So we exec the FD to /dev/null,
6135 # effectively closing config.log, so it can be properly (re)opened and
6136 # appended to by config.status. When coming back to configure, we
6137 # need to make the FD available again.
6138 if test "$no_create" != yes; then
6139 ac_cs_success=:
6140 ac_config_status_args=
6141 test "$silent" = yes &&
6142 ac_config_status_args="$ac_config_status_args --quiet"
6143 exec 5>/dev/null
6144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6145 exec 5>>config.log
6146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6147 # would make configure fail if this is the last instruction.
6148 $ac_cs_success || as_fn_exit 1
6149 fi
6150 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6152 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6153 fi
6154
6155
0 nsntrace (4+git20210205.1.4d02e74-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Thu, 19 Jan 2023 04:07:17 -0000
5
06 nsntrace (4-1) unstable; urgency=medium
17
28 * New upstream version 4
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC0"
789 # time-stamp-end: "; # UTC"
790 # End:
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2020-11-14.01; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
76 chgrpcmd=
77 chmodcmd=$chmodprog
78 chowncmd=
79 mvcmd=$mvprog
80 rmcmd="$rmprog -f"
81 stripcmd=
82
83 src=
84 dst=
85 dir_arg=
86 dst_arg=
87
88 copy_on_change=false
89 is_target_a_directory=possibly
90
91 usage="\
92 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
93 or: $0 [OPTION]... SRCFILES... DIRECTORY
94 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
95 or: $0 [OPTION]... -d DIRECTORIES...
96
97 In the 1st form, copy SRCFILE to DSTFILE.
98 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
99 In the 4th, create DIRECTORIES.
100
101 Options:
102 --help display this help and exit.
103 --version display version info and exit.
104
105 -c (ignored)
106 -C install only if different (preserve data modification time)
107 -d create directories instead of installing files.
108 -g GROUP $chgrpprog installed files to GROUP.
109 -m MODE $chmodprog installed files to MODE.
110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
114 -t DIRECTORY install into DIRECTORY.
115 -T report an error if DSTFILE is a directory.
116
117 Environment variables override the default commands:
118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
146 echo "$0: invalid mode: $mode" >&2
147 exit 1;;
148 esac
149 shift;;
150
151 -o) chowncmd="$chownprog $2"
152 shift;;
153
154 -p) cpprog="$cpprog -p";;
155
156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
160
161 -t)
162 is_target_a_directory=always
163 dst_arg=$2
164 # Protect names problematic for 'test' and other utilities.
165 case $dst_arg in
166 -* | [=\(\)!]) dst_arg=./$dst_arg;;
167 esac
168 shift;;
169
170 -T) is_target_a_directory=never;;
171
172 --version) echo "$0 $scriptversion"; exit $?;;
173
174 --) shift
175 break;;
176
177 -*) echo "$0: invalid option: $1" >&2
178 exit 1;;
179
180 *) break;;
181 esac
182 shift
183 done
184
185 # We allow the use of options -d and -T together, by making -d
186 # take the precedence; this is for compatibility with GNU install.
187
188 if test -n "$dir_arg"; then
189 if test -n "$dst_arg"; then
190 echo "$0: target directory not allowed when installing a directory." >&2
191 exit 1
192 fi
193 fi
194
195 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
196 # When -d is used, all remaining arguments are directories to create.
197 # When -t is used, the destination is already specified.
198 # Otherwise, the last argument is the destination. Remove it from $@.
199 for arg
200 do
201 if test -n "$dst_arg"; then
202 # $@ is not empty: it contains at least $arg.
203 set fnord "$@" "$dst_arg"
204 shift # fnord
205 fi
206 shift # arg
207 dst_arg=$arg
208 # Protect names problematic for 'test' and other utilities.
209 case $dst_arg in
210 -* | [=\(\)!]) dst_arg=./$dst_arg;;
211 esac
212 done
213 fi
214
215 if test $# -eq 0; then
216 if test -z "$dir_arg"; then
217 echo "$0: no input file specified." >&2
218 exit 1
219 fi
220 # It's OK to call 'install-sh -d' without argument.
221 # This can happen when creating conditional directories.
222 exit 0
223 fi
224
225 if test -z "$dir_arg"; then
226 if test $# -gt 1 || test "$is_target_a_directory" = always; then
227 if test ! -d "$dst_arg"; then
228 echo "$0: $dst_arg: Is not a directory." >&2
229 exit 1
230 fi
231 fi
232 fi
233
234 if test -z "$dir_arg"; then
235 do_exit='(exit $ret); exit $ret'
236 trap "ret=129; $do_exit" 1
237 trap "ret=130; $do_exit" 2
238 trap "ret=141; $do_exit" 13
239 trap "ret=143; $do_exit" 15
240
241 # Set umask so as not to create temps with too-generous modes.
242 # However, 'strip' requires both read and write access to temps.
243 case $mode in
244 # Optimize common cases.
245 *644) cp_umask=133;;
246 *755) cp_umask=22;;
247
248 *[0-7])
249 if test -z "$stripcmd"; then
250 u_plus_rw=
251 else
252 u_plus_rw='% 200'
253 fi
254 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
255 *)
256 if test -z "$stripcmd"; then
257 u_plus_rw=
258 else
259 u_plus_rw=,u+rw
260 fi
261 cp_umask=$mode$u_plus_rw;;
262 esac
263 fi
264
265 for src
266 do
267 # Protect names problematic for 'test' and other utilities.
268 case $src in
269 -* | [=\(\)!]) src=./$src;;
270 esac
271
272 if test -n "$dir_arg"; then
273 dst=$src
274 dstdir=$dst
275 test -d "$dstdir"
276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
281 else
282
283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
284 # might cause directories to be created, which would be especially bad
285 # if $src (and thus $dsttmp) contains '*'.
286 if test ! -f "$src" && test ! -d "$src"; then
287 echo "$0: $src does not exist." >&2
288 exit 1
289 fi
290
291 if test -z "$dst_arg"; then
292 echo "$0: no destination specified." >&2
293 exit 1
294 fi
295 dst=$dst_arg
296
297 # If destination is a directory, append the input filename.
298 if test -d "$dst"; then
299 if test "$is_target_a_directory" = never; then
300 echo "$0: $dst_arg: Is a directory" >&2
301 exit 1
302 fi
303 dstdir=$dst
304 dstbase=`basename "$src"`
305 case $dst in
306 */) dst=$dst$dstbase;;
307 *) dst=$dst/$dstbase;;
308 esac
309 dstdir_status=0
310 else
311 dstdir=`dirname "$dst"`
312 test -d "$dstdir"
313 dstdir_status=$?
314 fi
315 fi
316
317 case $dstdir in
318 */) dstdirslash=$dstdir;;
319 *) dstdirslash=$dstdir/;;
320 esac
321
322 obsolete_mkdir_used=false
323
324 if test $dstdir_status != 0; then
325 case $posix_mkdir in
326 '')
327 # With -d, create the new directory with the user-specified mode.
328 # Otherwise, rely on $mkdir_umask.
329 if test -n "$dir_arg"; then
330 mkdir_mode=-m$mode
331 else
332 mkdir_mode=
333 fi
334
335 posix_mkdir=false
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
379 esac
380
381 if
382 $posix_mkdir && (
383 umask $mkdir_umask &&
384 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
385 )
386 then :
387 else
388
389 # mkdir does not conform to POSIX,
390 # or it failed possibly due to a race condition. Create the
391 # directory the slow way, step by step, checking for races as we go.
392
393 case $dstdir in
394 /*) prefix='/';;
395 [-=\(\)!]*) prefix='./';;
396 *) prefix='';;
397 esac
398
399 oIFS=$IFS
400 IFS=/
401 set -f
402 set fnord $dstdir
403 shift
404 set +f
405 IFS=$oIFS
406
407 prefixes=
408
409 for d
410 do
411 test X"$d" = X && continue
412
413 prefix=$prefix$d
414 if test -d "$prefix"; then
415 prefixes=
416 else
417 if $posix_mkdir; then
418 (umask $mkdir_umask &&
419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
420 # Don't fail if two instances are running concurrently.
421 test -d "$prefix" || exit 1
422 else
423 case $prefix in
424 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
425 *) qprefix=$prefix;;
426 esac
427 prefixes="$prefixes '$qprefix'"
428 fi
429 fi
430 prefix=$prefix/
431 done
432
433 if test -n "$prefixes"; then
434 # Don't fail if two instances are running concurrently.
435 (umask $mkdir_umask &&
436 eval "\$doit_exec \$mkdirprog $prefixes") ||
437 test -d "$dstdir" || exit 1
438 obsolete_mkdir_used=true
439 fi
440 fi
441 fi
442
443 if test -n "$dir_arg"; then
444 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
445 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
446 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
447 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
448 else
449
450 # Make a couple of temp file names in the proper directory.
451 dsttmp=${dstdirslash}_inst.$$_
452 rmtmp=${dstdirslash}_rm.$$_
453
454 # Trap to clean up those temp files at exit.
455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
456
457 # Copy the file name to the temp name.
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
470
471 # and set any options; do chmod last to preserve setuid bits.
472 #
473 # If any of these fail, we abort the whole thing. If we want to
474 # ignore errors from any of these, just make sure not to ignore
475 # errors from the above "$doit $cpprog $src $dsttmp" command.
476 #
477 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
478 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
479 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
480 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
481
482 # If -C, don't bother to copy if it wouldn't change the file.
483 if $copy_on_change &&
484 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
485 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
486 set -f &&
487 set X $old && old=:$2:$4:$5:$6 &&
488 set X $new && new=:$2:$4:$5:$6 &&
489 set +f &&
490 test "$old" = "$new" &&
491 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
492 then
493 rm -f "$dsttmp"
494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
502 # Rename the file to the real destination.
503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
504
505 # The rename failed, perhaps because mv can't rename something else
506 # to itself, or perhaps because mv is so ancient that it does not
507 # support -f.
508 {
509 # Now remove or move aside any old file at destination location.
510 # We try this two ways since rm can't unlink itself on some
511 # systems and the destination file might be busy for other
512 # reasons. In this case, the final cleanup might fail but the new
513 # file should still install successfully.
514 {
515 test ! -f "$dst" ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
519 } ||
520 { echo "$0: cannot unlink or rename $dst" >&2
521 (exit 1); exit 1
522 }
523 } &&
524
525 # Now rename the file to the real destination.
526 $doit $mvcmd "$dsttmp" "$dst"
527 }
528 fi || exit 1
529
530 trap '' 0
531 fi
532 done
533
534 # Local variables:
535 # eval: (add-hook 'before-save-hook 'time-stamp)
536 # time-stamp-start: "scriptversion="
537 # time-stamp-format: "%:y-%02m-%02d.%02H"
538 # time-stamp-time-zone: "UTC0"
539 # time-stamp-end: "; # UTC"
540 # End:
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 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 = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
27 am__make_running_with_option = \
28 case $${target_option-} in \
29 ?) ;; \
30 *) echo "am__make_running_with_option: internal error: invalid" \
31 "target option '$${target_option-}' specified" >&2; \
32 exit 1;; \
33 esac; \
34 has_opt=no; \
35 sane_makeflags=$$MAKEFLAGS; \
36 if $(am__is_gnu_make); then \
37 sane_makeflags=$$MFLAGS; \
38 else \
39 case $$MAKEFLAGS in \
40 *\\[\ \ ]*) \
41 bs=\\; \
42 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
43 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
44 esac; \
45 fi; \
46 skip_next=no; \
47 strip_trailopt () \
48 { \
49 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
50 }; \
51 for flg in $$sane_makeflags; do \
52 test $$skip_next = yes && { skip_next=no; continue; }; \
53 case $$flg in \
54 *=*|--*) continue;; \
55 -*I) strip_trailopt 'I'; skip_next=yes;; \
56 -*I?*) strip_trailopt 'I';; \
57 -*O) strip_trailopt 'O'; skip_next=yes;; \
58 -*O?*) strip_trailopt 'O';; \
59 -*l) strip_trailopt 'l'; skip_next=yes;; \
60 -*l?*) strip_trailopt 'l';; \
61 -[dEDm]) skip_next=yes;; \
62 -[JT]) skip_next=yes;; \
63 esac; \
64 case $$flg in \
65 *$$target_option*) has_opt=yes; break;; \
66 esac; \
67 done; \
68 test $$has_opt = yes
69 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
70 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
71 pkgdatadir = $(datadir)/@PACKAGE@
72 pkgincludedir = $(includedir)/@PACKAGE@
73 pkglibdir = $(libdir)/@PACKAGE@
74 pkglibexecdir = $(libexecdir)/@PACKAGE@
75 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
76 install_sh_DATA = $(install_sh) -c -m 644
77 install_sh_PROGRAM = $(install_sh) -c
78 install_sh_SCRIPT = $(install_sh) -c
79 INSTALL_HEADER = $(INSTALL_DATA)
80 transform = $(program_transform_name)
81 NORMAL_INSTALL = :
82 PRE_INSTALL = :
83 POST_INSTALL = :
84 NORMAL_UNINSTALL = :
85 PRE_UNINSTALL = :
86 POST_UNINSTALL = :
87 subdir = man
88 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
89 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
90 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91 $(ACLOCAL_M4)
92 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
93 mkinstalldirs = $(install_sh) -d
94 CONFIG_HEADER = $(top_builddir)/config.h
95 CONFIG_CLEAN_FILES =
96 CONFIG_CLEAN_VPATH_FILES =
97 AM_V_P = $(am__v_P_@AM_V@)
98 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
99 am__v_P_0 = false
100 am__v_P_1 = :
101 AM_V_GEN = $(am__v_GEN_@AM_V@)
102 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
103 am__v_GEN_0 = @echo " GEN " $@;
104 am__v_GEN_1 =
105 AM_V_at = $(am__v_at_@AM_V@)
106 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
107 am__v_at_0 = @
108 am__v_at_1 =
109 SOURCES =
110 DIST_SOURCES =
111 am__can_run_installinfo = \
112 case $$AM_UPDATE_INFO_DIR in \
113 n|no|NO) false;; \
114 *) (install-info --version) >/dev/null 2>&1;; \
115 esac
116 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
117 am__vpath_adj = case $$p in \
118 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119 *) f=$$p;; \
120 esac;
121 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
122 am__install_max = 40
123 am__nobase_strip_setup = \
124 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
125 am__nobase_strip = \
126 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
127 am__nobase_list = $(am__nobase_strip_setup); \
128 for p in $$list; do echo "$$p $$p"; done | \
129 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
130 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
131 if (++n[$$2] == $(am__install_max)) \
132 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
133 END { for (dir in files) print dir, files[dir] }'
134 am__base_list = \
135 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
136 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
137 am__uninstall_files_from_dir = { \
138 test -z "$$files" \
139 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
140 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
141 $(am__cd) "$$dir" && rm -f $$files; }; \
142 }
143 man1dir = $(mandir)/man1
144 am__installdirs = "$(DESTDIR)$(man1dir)"
145 NROFF = nroff
146 MANS = $(man1_MANS)
147 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
148 am__DIST_COMMON = $(srcdir)/Makefile.in
149 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
150 ACLOCAL = @ACLOCAL@
151 AMTAR = @AMTAR@
152 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
153 AUTOCONF = @AUTOCONF@
154 AUTOHEADER = @AUTOHEADER@
155 AUTOMAKE = @AUTOMAKE@
156 AWK = @AWK@
157 CC = @CC@
158 CCDEPMODE = @CCDEPMODE@
159 CFLAGS = @CFLAGS@
160 CPPFLAGS = @CPPFLAGS@
161 CSCOPE = @CSCOPE@
162 CTAGS = @CTAGS@
163 CYGPATH_W = @CYGPATH_W@
164 DEFS = @DEFS@
165 DEPDIR = @DEPDIR@
166 ECHO_C = @ECHO_C@
167 ECHO_N = @ECHO_N@
168 ECHO_T = @ECHO_T@
169 ETAGS = @ETAGS@
170 EXEEXT = @EXEEXT@
171 INSTALL = @INSTALL@
172 INSTALL_DATA = @INSTALL_DATA@
173 INSTALL_PROGRAM = @INSTALL_PROGRAM@
174 INSTALL_SCRIPT = @INSTALL_SCRIPT@
175 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
176 IPTABLES_CHECK = @IPTABLES_CHECK@
177 LDFLAGS = @LDFLAGS@
178 LIBNL_CFLAGS = @LIBNL_CFLAGS@
179 LIBNL_LIBS = @LIBNL_LIBS@
180 LIBOBJS = @LIBOBJS@
181 LIBS = @LIBS@
182 LTLIBOBJS = @LTLIBOBJS@
183 MAKEINFO = @MAKEINFO@
184 MKDIR_P = @MKDIR_P@
185 OBJEXT = @OBJEXT@
186 PACKAGE = @PACKAGE@
187 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
188 PACKAGE_NAME = @PACKAGE_NAME@
189 PACKAGE_STRING = @PACKAGE_STRING@
190 PACKAGE_TARNAME = @PACKAGE_TARNAME@
191 PACKAGE_URL = @PACKAGE_URL@
192 PACKAGE_VERSION = @PACKAGE_VERSION@
193 PATH_SEPARATOR = @PATH_SEPARATOR@
194 PKG_CONFIG = @PKG_CONFIG@
195 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
196 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
197 SET_MAKE = @SET_MAKE@
198 SHELL = @SHELL@
199 STRIP = @STRIP@
200 VERSION = @VERSION@
201 XSLTPROC = @XSLTPROC@
202 abs_builddir = @abs_builddir@
203 abs_srcdir = @abs_srcdir@
204 abs_top_builddir = @abs_top_builddir@
205 abs_top_srcdir = @abs_top_srcdir@
206 ac_ct_CC = @ac_ct_CC@
207 am__include = @am__include@
208 am__leading_dot = @am__leading_dot@
209 am__quote = @am__quote@
210 am__tar = @am__tar@
211 am__untar = @am__untar@
212 bindir = @bindir@
213 build_alias = @build_alias@
214 builddir = @builddir@
215 datadir = @datadir@
216 datarootdir = @datarootdir@
217 docdir = @docdir@
218 dvidir = @dvidir@
219 exec_prefix = @exec_prefix@
220 host_alias = @host_alias@
221 htmldir = @htmldir@
222 includedir = @includedir@
223 infodir = @infodir@
224 install_sh = @install_sh@
225 libdir = @libdir@
226 libexecdir = @libexecdir@
227 localedir = @localedir@
228 localstatedir = @localstatedir@
229 mandir = @mandir@
230 mkdir_p = @mkdir_p@
231 oldincludedir = @oldincludedir@
232 pdfdir = @pdfdir@
233 prefix = @prefix@
234 program_transform_name = @program_transform_name@
235 psdir = @psdir@
236 runstatedir = @runstatedir@
237 sbindir = @sbindir@
238 sharedstatedir = @sharedstatedir@
239 srcdir = @srcdir@
240 sysconfdir = @sysconfdir@
241 target_alias = @target_alias@
242 top_build_prefix = @top_build_prefix@
243 top_builddir = @top_builddir@
244 top_srcdir = @top_srcdir@
245 @ENABLE_MANPAGES_TRUE@man1_MANS = nsntrace.1
246 @ENABLE_MANPAGES_TRUE@XSLTPROC_FLAGS = --nonet
247 @ENABLE_MANPAGES_TRUE@EXTRA_DIST = nsntrace.xml man.xsl
248 @ENABLE_MANPAGES_TRUE@CLEANFILES = $(man1_MANS)
249 all: all-am
250
251 .SUFFIXES:
252 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
253 @for dep in $?; do \
254 case '$(am__configure_deps)' in \
255 *$$dep*) \
256 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
257 && { if test -f $@; then exit 0; else break; fi; }; \
258 exit 1;; \
259 esac; \
260 done; \
261 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
262 $(am__cd) $(top_srcdir) && \
263 $(AUTOMAKE) --foreign man/Makefile
264 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
265 @case '$?' in \
266 *config.status*) \
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
268 *) \
269 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
270 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
271 esac;
272
273 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
274 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
275
276 $(top_srcdir)/configure: $(am__configure_deps)
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
280 $(am__aclocal_m4_deps):
281 install-man1: $(man1_MANS)
282 @$(NORMAL_INSTALL)
283 @list1='$(man1_MANS)'; \
284 list2=''; \
285 test -n "$(man1dir)" \
286 && test -n "`echo $$list1$$list2`" \
287 || exit 0; \
288 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
289 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
290 { for i in $$list1; do echo "$$i"; done; \
291 if test -n "$$list2"; then \
292 for i in $$list2; do echo "$$i"; done \
293 | sed -n '/\.1[a-z]*$$/p'; \
294 fi; \
295 } | while read p; do \
296 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
297 echo "$$d$$p"; echo "$$p"; \
298 done | \
299 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
300 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
301 sed 'N;N;s,\n, ,g' | { \
302 list=; while read file base inst; do \
303 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
304 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
305 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
306 fi; \
307 done; \
308 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
309 while read files; do \
310 test -z "$$files" || { \
311 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
312 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
313 done; }
314
315 uninstall-man1:
316 @$(NORMAL_UNINSTALL)
317 @list='$(man1_MANS)'; test -n "$(man1dir)" || exit 0; \
318 files=`{ for i in $$list; do echo "$$i"; done; \
319 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
320 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
321 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
322 tags TAGS:
323
324 ctags CTAGS:
325
326 cscope cscopelist:
327
328 distdir: $(BUILT_SOURCES)
329 $(MAKE) $(AM_MAKEFLAGS) distdir-am
330
331 distdir-am: $(DISTFILES)
332 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
333 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
334 list='$(DISTFILES)'; \
335 dist_files=`for file in $$list; do echo $$file; done | \
336 sed -e "s|^$$srcdirstrip/||;t" \
337 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
338 case $$dist_files in \
339 */*) $(MKDIR_P) `echo "$$dist_files" | \
340 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
341 sort -u` ;; \
342 esac; \
343 for file in $$dist_files; do \
344 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
345 if test -d $$d/$$file; then \
346 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
347 if test -d "$(distdir)/$$file"; then \
348 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
349 fi; \
350 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
351 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
352 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
353 fi; \
354 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
355 else \
356 test -f "$(distdir)/$$file" \
357 || cp -p $$d/$$file "$(distdir)/$$file" \
358 || exit 1; \
359 fi; \
360 done
361 check-am: all-am
362 check: check-am
363 all-am: Makefile $(MANS)
364 installdirs:
365 for dir in "$(DESTDIR)$(man1dir)"; do \
366 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
367 done
368 install: install-am
369 install-exec: install-exec-am
370 install-data: install-data-am
371 uninstall: uninstall-am
372
373 install-am: all-am
374 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
375
376 installcheck: installcheck-am
377 install-strip:
378 if test -z '$(STRIP)'; then \
379 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
380 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
381 install; \
382 else \
383 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
384 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
385 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
386 fi
387 mostlyclean-generic:
388
389 clean-generic:
390 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
391
392 distclean-generic:
393 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
394 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
395
396 maintainer-clean-generic:
397 @echo "This command is intended for maintainers to use"
398 @echo "it deletes files that may require special tools to rebuild."
399 clean: clean-am
400
401 clean-am: clean-generic mostlyclean-am
402
403 distclean: distclean-am
404 -rm -f Makefile
405 distclean-am: clean-am distclean-generic
406
407 dvi: dvi-am
408
409 dvi-am:
410
411 html: html-am
412
413 html-am:
414
415 info: info-am
416
417 info-am:
418
419 install-data-am: install-man
420
421 install-dvi: install-dvi-am
422
423 install-dvi-am:
424
425 install-exec-am:
426
427 install-html: install-html-am
428
429 install-html-am:
430
431 install-info: install-info-am
432
433 install-info-am:
434
435 install-man: install-man1
436
437 install-pdf: install-pdf-am
438
439 install-pdf-am:
440
441 install-ps: install-ps-am
442
443 install-ps-am:
444
445 installcheck-am:
446
447 maintainer-clean: maintainer-clean-am
448 -rm -f Makefile
449 maintainer-clean-am: distclean-am maintainer-clean-generic
450
451 mostlyclean: mostlyclean-am
452
453 mostlyclean-am: mostlyclean-generic
454
455 pdf: pdf-am
456
457 pdf-am:
458
459 ps: ps-am
460
461 ps-am:
462
463 uninstall-am: uninstall-man
464
465 uninstall-man: uninstall-man1
466
467 .MAKE: install-am install-strip
468
469 .PHONY: all all-am check check-am clean clean-generic cscopelist-am \
470 ctags-am distclean distclean-generic distdir dvi dvi-am html \
471 html-am info info-am install install-am install-data \
472 install-data-am install-dvi install-dvi-am install-exec \
473 install-exec-am install-html install-html-am install-info \
474 install-info-am install-man install-man1 install-pdf \
475 install-pdf-am install-ps install-ps-am install-strip \
476 installcheck installcheck-am installdirs maintainer-clean \
477 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
478 pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-man \
479 uninstall-man1
480
481 .PRECIOUS: Makefile
482
483
484 @ENABLE_MANPAGES_TRUE@nsntrace.1: nsntrace.xml
485 @ENABLE_MANPAGES_TRUE@ $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $(srcdir)/man.xsl $<
486
487 # Tell versions [3.59,3.63) of GNU make to not export all variables.
488 # Otherwise a system limit (for SysV at least) may be exceeded.
489 .NOEXPORT:
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC0"
213 # time-stamp-end: "; # UTC"
214 # End:
+0
-35
snap/snapcraft.yaml less more
0 name: nsntrace
1 adopt-info: nsntrace
2 base: core20
3 summary: Namespaced network tracer
4 description: |
5 Perform network trace of a single process by using network namespaces.
6
7 grade: stable
8 confinement: classic
9
10 parts:
11 nsntrace:
12 plugin: autotools
13 source-type: git
14 override-pull: | # This override tells snapcraft to use latest release tag
15 snapcraftctl pull
16 last_tag="$(git describe --tags --abbrev=0 --match 'v*')"
17 git fetch
18 git checkout "${last_tag}"
19 snapcraftctl set-version "${last_tag}"
20 source: https://github.com/nsntrace/nsntrace.git
21 build-packages:
22 - libpcap-dev
23 - libnl-route-3-dev
24 - xsltproc
25 - iptables
26 - pkg-config
27 - docbook-xsl
28 - docbook-xml
29 stage-packages:
30 - libpcap0.8
31
32 apps:
33 nsntrace:
34 command: usr/local/bin/nsntrace
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 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 = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 bin_PROGRAMS = nsntrace$(EXEEXT)
89 subdir = src
90 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
91 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
92 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
93 $(ACLOCAL_M4)
94 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
95 mkinstalldirs = $(install_sh) -d
96 CONFIG_HEADER = $(top_builddir)/config.h
97 CONFIG_CLEAN_FILES =
98 CONFIG_CLEAN_VPATH_FILES =
99 am__installdirs = "$(DESTDIR)$(bindir)"
100 PROGRAMS = $(bin_PROGRAMS)
101 am__objects_1 =
102 am__objects_2 = nsntrace-nsntrace.$(OBJEXT) nsntrace-cmd.$(OBJEXT) \
103 nsntrace-net.$(OBJEXT) nsntrace-capture.$(OBJEXT)
104 am_nsntrace_OBJECTS = $(am__objects_1) $(am__objects_2)
105 nsntrace_OBJECTS = $(am_nsntrace_OBJECTS)
106 am__DEPENDENCIES_1 =
107 nsntrace_DEPENDENCIES = $(am__DEPENDENCIES_1)
108 nsntrace_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(nsntrace_LDFLAGS) \
109 $(LDFLAGS) -o $@
110 AM_V_P = $(am__v_P_@AM_V@)
111 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
112 am__v_P_0 = false
113 am__v_P_1 = :
114 AM_V_GEN = $(am__v_GEN_@AM_V@)
115 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
116 am__v_GEN_0 = @echo " GEN " $@;
117 am__v_GEN_1 =
118 AM_V_at = $(am__v_at_@AM_V@)
119 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
120 am__v_at_0 = @
121 am__v_at_1 =
122 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
123 depcomp = $(SHELL) $(top_srcdir)/depcomp
124 am__maybe_remake_depfiles = depfiles
125 am__depfiles_remade = ./$(DEPDIR)/nsntrace-capture.Po \
126 ./$(DEPDIR)/nsntrace-cmd.Po ./$(DEPDIR)/nsntrace-net.Po \
127 ./$(DEPDIR)/nsntrace-nsntrace.Po
128 am__mv = mv -f
129 AM_V_lt = $(am__v_lt_@AM_V@)
130 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
131 am__v_lt_0 = --silent
132 am__v_lt_1 =
133 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
134 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
135 AM_V_CC = $(am__v_CC_@AM_V@)
136 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
137 am__v_CC_0 = @echo " CC " $@;
138 am__v_CC_1 =
139 CCLD = $(CC)
140 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
141 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
142 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
143 am__v_CCLD_0 = @echo " CCLD " $@;
144 am__v_CCLD_1 =
145 SOURCES = $(nsntrace_SOURCES)
146 DIST_SOURCES = $(nsntrace_SOURCES)
147 am__can_run_installinfo = \
148 case $$AM_UPDATE_INFO_DIR in \
149 n|no|NO) false;; \
150 *) (install-info --version) >/dev/null 2>&1;; \
151 esac
152 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
153 # Read a list of newline-separated strings from the standard input,
154 # and print each of them once, without duplicates. Input order is
155 # *not* preserved.
156 am__uniquify_input = $(AWK) '\
157 BEGIN { nonempty = 0; } \
158 { items[$$0] = 1; nonempty = 1; } \
159 END { if (nonempty) { for (i in items) print i; }; } \
160 '
161 # Make sure the list of sources is unique. This is necessary because,
162 # e.g., the same source file might be shared among _SOURCES variables
163 # for different programs/libraries.
164 am__define_uniq_tagged_files = \
165 list='$(am__tagged_files)'; \
166 unique=`for i in $$list; do \
167 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
168 done | $(am__uniquify_input)`
169 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
170 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
171 ACLOCAL = @ACLOCAL@
172 AMTAR = @AMTAR@
173 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
174 AUTOCONF = @AUTOCONF@
175 AUTOHEADER = @AUTOHEADER@
176 AUTOMAKE = @AUTOMAKE@
177 AWK = @AWK@
178 CC = @CC@
179 CCDEPMODE = @CCDEPMODE@
180 CFLAGS = @CFLAGS@
181 CPPFLAGS = @CPPFLAGS@
182 CSCOPE = @CSCOPE@
183 CTAGS = @CTAGS@
184 CYGPATH_W = @CYGPATH_W@
185 DEFS = @DEFS@
186 DEPDIR = @DEPDIR@
187 ECHO_C = @ECHO_C@
188 ECHO_N = @ECHO_N@
189 ECHO_T = @ECHO_T@
190 ETAGS = @ETAGS@
191 EXEEXT = @EXEEXT@
192 INSTALL = @INSTALL@
193 INSTALL_DATA = @INSTALL_DATA@
194 INSTALL_PROGRAM = @INSTALL_PROGRAM@
195 INSTALL_SCRIPT = @INSTALL_SCRIPT@
196 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
197 IPTABLES_CHECK = @IPTABLES_CHECK@
198 LDFLAGS = @LDFLAGS@
199 LIBNL_CFLAGS = @LIBNL_CFLAGS@
200 LIBNL_LIBS = @LIBNL_LIBS@
201 LIBOBJS = @LIBOBJS@
202 LIBS = @LIBS@
203 LTLIBOBJS = @LTLIBOBJS@
204 MAKEINFO = @MAKEINFO@
205 MKDIR_P = @MKDIR_P@
206 OBJEXT = @OBJEXT@
207 PACKAGE = @PACKAGE@
208 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
209 PACKAGE_NAME = @PACKAGE_NAME@
210 PACKAGE_STRING = @PACKAGE_STRING@
211 PACKAGE_TARNAME = @PACKAGE_TARNAME@
212 PACKAGE_URL = @PACKAGE_URL@
213 PACKAGE_VERSION = @PACKAGE_VERSION@
214 PATH_SEPARATOR = @PATH_SEPARATOR@
215 PKG_CONFIG = @PKG_CONFIG@
216 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
217 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
218 SET_MAKE = @SET_MAKE@
219 SHELL = @SHELL@
220 STRIP = @STRIP@
221 VERSION = @VERSION@
222 XSLTPROC = @XSLTPROC@
223 abs_builddir = @abs_builddir@
224 abs_srcdir = @abs_srcdir@
225 abs_top_builddir = @abs_top_builddir@
226 abs_top_srcdir = @abs_top_srcdir@
227 ac_ct_CC = @ac_ct_CC@
228 am__include = @am__include@
229 am__leading_dot = @am__leading_dot@
230 am__quote = @am__quote@
231 am__tar = @am__tar@
232 am__untar = @am__untar@
233 bindir = @bindir@
234 build_alias = @build_alias@
235 builddir = @builddir@
236 datadir = @datadir@
237 datarootdir = @datarootdir@
238 docdir = @docdir@
239 dvidir = @dvidir@
240 exec_prefix = @exec_prefix@
241 host_alias = @host_alias@
242 htmldir = @htmldir@
243 includedir = @includedir@
244 infodir = @infodir@
245 install_sh = @install_sh@
246 libdir = @libdir@
247 libexecdir = @libexecdir@
248 localedir = @localedir@
249 localstatedir = @localstatedir@
250 mandir = @mandir@
251 mkdir_p = @mkdir_p@
252 oldincludedir = @oldincludedir@
253 pdfdir = @pdfdir@
254 prefix = @prefix@
255 program_transform_name = @program_transform_name@
256 psdir = @psdir@
257 runstatedir = @runstatedir@
258 sbindir = @sbindir@
259 sharedstatedir = @sharedstatedir@
260 srcdir = @srcdir@
261 sysconfdir = @sysconfdir@
262 target_alias = @target_alias@
263 top_build_prefix = @top_build_prefix@
264 top_builddir = @top_builddir@
265 top_srcdir = @top_srcdir@
266 warnings = -Wall -Wno-missing-braces
267 headers = \
268 net.h \
269 cmd.h \
270 capture.h
271
272 sources = \
273 nsntrace.c \
274 cmd.c \
275 net.c \
276 capture.c
277
278 nsntrace_SOURCES = $(headers) $(sources)
279 nsntrace_CPPFLAGS = $(LIBNL_CFLAGS) $(warnings)
280 nsntrace_LDFLAGS = -pthread
281 nsntrace_LDADD = $(LIBNL_LIBS) -lresolv
282 all: all-am
283
284 .SUFFIXES:
285 .SUFFIXES: .c .o .obj
286 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
287 @for dep in $?; do \
288 case '$(am__configure_deps)' in \
289 *$$dep*) \
290 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
291 && { if test -f $@; then exit 0; else break; fi; }; \
292 exit 1;; \
293 esac; \
294 done; \
295 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
296 $(am__cd) $(top_srcdir) && \
297 $(AUTOMAKE) --foreign src/Makefile
298 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
299 @case '$?' in \
300 *config.status*) \
301 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
302 *) \
303 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
304 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
305 esac;
306
307 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
308 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
309
310 $(top_srcdir)/configure: $(am__configure_deps)
311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
312 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
314 $(am__aclocal_m4_deps):
315 install-binPROGRAMS: $(bin_PROGRAMS)
316 @$(NORMAL_INSTALL)
317 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
318 if test -n "$$list"; then \
319 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
320 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
321 fi; \
322 for p in $$list; do echo "$$p $$p"; done | \
323 sed 's/$(EXEEXT)$$//' | \
324 while read p p1; do if test -f $$p \
325 ; then echo "$$p"; echo "$$p"; else :; fi; \
326 done | \
327 sed -e 'p;s,.*/,,;n;h' \
328 -e 's|.*|.|' \
329 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
330 sed 'N;N;N;s,\n, ,g' | \
331 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
332 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
333 if ($$2 == $$4) files[d] = files[d] " " $$1; \
334 else { print "f", $$3 "/" $$4, $$1; } } \
335 END { for (d in files) print "f", d, files[d] }' | \
336 while read type dir files; do \
337 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
338 test -z "$$files" || { \
339 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
340 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
341 } \
342 ; done
343
344 uninstall-binPROGRAMS:
345 @$(NORMAL_UNINSTALL)
346 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
347 files=`for p in $$list; do echo "$$p"; done | \
348 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
349 -e 's/$$/$(EXEEXT)/' \
350 `; \
351 test -n "$$list" || exit 0; \
352 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
353 cd "$(DESTDIR)$(bindir)" && rm -f $$files
354
355 clean-binPROGRAMS:
356 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
357
358 nsntrace$(EXEEXT): $(nsntrace_OBJECTS) $(nsntrace_DEPENDENCIES) $(EXTRA_nsntrace_DEPENDENCIES)
359 @rm -f nsntrace$(EXEEXT)
360 $(AM_V_CCLD)$(nsntrace_LINK) $(nsntrace_OBJECTS) $(nsntrace_LDADD) $(LIBS)
361
362 mostlyclean-compile:
363 -rm -f *.$(OBJEXT)
364
365 distclean-compile:
366 -rm -f *.tab.c
367
368 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nsntrace-capture.Po@am__quote@ # am--include-marker
369 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nsntrace-cmd.Po@am__quote@ # am--include-marker
370 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nsntrace-net.Po@am__quote@ # am--include-marker
371 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nsntrace-nsntrace.Po@am__quote@ # am--include-marker
372
373 $(am__depfiles_remade):
374 @$(MKDIR_P) $(@D)
375 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
376
377 am--depfiles: $(am__depfiles_remade)
378
379 .c.o:
380 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
381 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
382 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
383 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
384 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
385
386 .c.obj:
387 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
388 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
389 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
390 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
391 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
392
393 nsntrace-nsntrace.o: nsntrace.c
394 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-nsntrace.o -MD -MP -MF $(DEPDIR)/nsntrace-nsntrace.Tpo -c -o nsntrace-nsntrace.o `test -f 'nsntrace.c' || echo '$(srcdir)/'`nsntrace.c
395 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-nsntrace.Tpo $(DEPDIR)/nsntrace-nsntrace.Po
396 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='nsntrace.c' object='nsntrace-nsntrace.o' libtool=no @AMDEPBACKSLASH@
397 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-nsntrace.o `test -f 'nsntrace.c' || echo '$(srcdir)/'`nsntrace.c
399
400 nsntrace-nsntrace.obj: nsntrace.c
401 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-nsntrace.obj -MD -MP -MF $(DEPDIR)/nsntrace-nsntrace.Tpo -c -o nsntrace-nsntrace.obj `if test -f 'nsntrace.c'; then $(CYGPATH_W) 'nsntrace.c'; else $(CYGPATH_W) '$(srcdir)/nsntrace.c'; fi`
402 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-nsntrace.Tpo $(DEPDIR)/nsntrace-nsntrace.Po
403 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='nsntrace.c' object='nsntrace-nsntrace.obj' libtool=no @AMDEPBACKSLASH@
404 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
405 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-nsntrace.obj `if test -f 'nsntrace.c'; then $(CYGPATH_W) 'nsntrace.c'; else $(CYGPATH_W) '$(srcdir)/nsntrace.c'; fi`
406
407 nsntrace-cmd.o: cmd.c
408 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-cmd.o -MD -MP -MF $(DEPDIR)/nsntrace-cmd.Tpo -c -o nsntrace-cmd.o `test -f 'cmd.c' || echo '$(srcdir)/'`cmd.c
409 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-cmd.Tpo $(DEPDIR)/nsntrace-cmd.Po
410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cmd.c' object='nsntrace-cmd.o' libtool=no @AMDEPBACKSLASH@
411 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
412 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-cmd.o `test -f 'cmd.c' || echo '$(srcdir)/'`cmd.c
413
414 nsntrace-cmd.obj: cmd.c
415 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-cmd.obj -MD -MP -MF $(DEPDIR)/nsntrace-cmd.Tpo -c -o nsntrace-cmd.obj `if test -f 'cmd.c'; then $(CYGPATH_W) 'cmd.c'; else $(CYGPATH_W) '$(srcdir)/cmd.c'; fi`
416 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-cmd.Tpo $(DEPDIR)/nsntrace-cmd.Po
417 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cmd.c' object='nsntrace-cmd.obj' libtool=no @AMDEPBACKSLASH@
418 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
419 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-cmd.obj `if test -f 'cmd.c'; then $(CYGPATH_W) 'cmd.c'; else $(CYGPATH_W) '$(srcdir)/cmd.c'; fi`
420
421 nsntrace-net.o: net.c
422 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-net.o -MD -MP -MF $(DEPDIR)/nsntrace-net.Tpo -c -o nsntrace-net.o `test -f 'net.c' || echo '$(srcdir)/'`net.c
423 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-net.Tpo $(DEPDIR)/nsntrace-net.Po
424 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='net.c' object='nsntrace-net.o' libtool=no @AMDEPBACKSLASH@
425 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
426 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-net.o `test -f 'net.c' || echo '$(srcdir)/'`net.c
427
428 nsntrace-net.obj: net.c
429 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-net.obj -MD -MP -MF $(DEPDIR)/nsntrace-net.Tpo -c -o nsntrace-net.obj `if test -f 'net.c'; then $(CYGPATH_W) 'net.c'; else $(CYGPATH_W) '$(srcdir)/net.c'; fi`
430 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-net.Tpo $(DEPDIR)/nsntrace-net.Po
431 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='net.c' object='nsntrace-net.obj' libtool=no @AMDEPBACKSLASH@
432 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
433 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-net.obj `if test -f 'net.c'; then $(CYGPATH_W) 'net.c'; else $(CYGPATH_W) '$(srcdir)/net.c'; fi`
434
435 nsntrace-capture.o: capture.c
436 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-capture.o -MD -MP -MF $(DEPDIR)/nsntrace-capture.Tpo -c -o nsntrace-capture.o `test -f 'capture.c' || echo '$(srcdir)/'`capture.c
437 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-capture.Tpo $(DEPDIR)/nsntrace-capture.Po
438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='capture.c' object='nsntrace-capture.o' libtool=no @AMDEPBACKSLASH@
439 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
440 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-capture.o `test -f 'capture.c' || echo '$(srcdir)/'`capture.c
441
442 nsntrace-capture.obj: capture.c
443 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nsntrace-capture.obj -MD -MP -MF $(DEPDIR)/nsntrace-capture.Tpo -c -o nsntrace-capture.obj `if test -f 'capture.c'; then $(CYGPATH_W) 'capture.c'; else $(CYGPATH_W) '$(srcdir)/capture.c'; fi`
444 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/nsntrace-capture.Tpo $(DEPDIR)/nsntrace-capture.Po
445 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='capture.c' object='nsntrace-capture.obj' libtool=no @AMDEPBACKSLASH@
446 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
447 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nsntrace_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nsntrace-capture.obj `if test -f 'capture.c'; then $(CYGPATH_W) 'capture.c'; else $(CYGPATH_W) '$(srcdir)/capture.c'; fi`
448
449 ID: $(am__tagged_files)
450 $(am__define_uniq_tagged_files); mkid -fID $$unique
451 tags: tags-am
452 TAGS: tags
453
454 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
455 set x; \
456 here=`pwd`; \
457 $(am__define_uniq_tagged_files); \
458 shift; \
459 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
460 test -n "$$unique" || unique=$$empty_fix; \
461 if test $$# -gt 0; then \
462 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
463 "$$@" $$unique; \
464 else \
465 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
466 $$unique; \
467 fi; \
468 fi
469 ctags: ctags-am
470
471 CTAGS: ctags
472 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
473 $(am__define_uniq_tagged_files); \
474 test -z "$(CTAGS_ARGS)$$unique" \
475 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
476 $$unique
477
478 GTAGS:
479 here=`$(am__cd) $(top_builddir) && pwd` \
480 && $(am__cd) $(top_srcdir) \
481 && gtags -i $(GTAGS_ARGS) "$$here"
482 cscopelist: cscopelist-am
483
484 cscopelist-am: $(am__tagged_files)
485 list='$(am__tagged_files)'; \
486 case "$(srcdir)" in \
487 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
488 *) sdir=$(subdir)/$(srcdir) ;; \
489 esac; \
490 for i in $$list; do \
491 if test -f "$$i"; then \
492 echo "$(subdir)/$$i"; \
493 else \
494 echo "$$sdir/$$i"; \
495 fi; \
496 done >> $(top_builddir)/cscope.files
497
498 distclean-tags:
499 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
500 distdir: $(BUILT_SOURCES)
501 $(MAKE) $(AM_MAKEFLAGS) distdir-am
502
503 distdir-am: $(DISTFILES)
504 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
505 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
506 list='$(DISTFILES)'; \
507 dist_files=`for file in $$list; do echo $$file; done | \
508 sed -e "s|^$$srcdirstrip/||;t" \
509 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
510 case $$dist_files in \
511 */*) $(MKDIR_P) `echo "$$dist_files" | \
512 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
513 sort -u` ;; \
514 esac; \
515 for file in $$dist_files; do \
516 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
517 if test -d $$d/$$file; then \
518 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
519 if test -d "$(distdir)/$$file"; then \
520 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
521 fi; \
522 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
523 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
524 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
525 fi; \
526 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
527 else \
528 test -f "$(distdir)/$$file" \
529 || cp -p $$d/$$file "$(distdir)/$$file" \
530 || exit 1; \
531 fi; \
532 done
533 check-am: all-am
534 check: check-am
535 all-am: Makefile $(PROGRAMS)
536 installdirs:
537 for dir in "$(DESTDIR)$(bindir)"; do \
538 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
539 done
540 install: install-am
541 install-exec: install-exec-am
542 install-data: install-data-am
543 uninstall: uninstall-am
544
545 install-am: all-am
546 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
547
548 installcheck: installcheck-am
549 install-strip:
550 if test -z '$(STRIP)'; then \
551 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
552 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
553 install; \
554 else \
555 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
556 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
557 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
558 fi
559 mostlyclean-generic:
560
561 clean-generic:
562
563 distclean-generic:
564 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
565 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
566
567 maintainer-clean-generic:
568 @echo "This command is intended for maintainers to use"
569 @echo "it deletes files that may require special tools to rebuild."
570 clean: clean-am
571
572 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
573
574 distclean: distclean-am
575 -rm -f ./$(DEPDIR)/nsntrace-capture.Po
576 -rm -f ./$(DEPDIR)/nsntrace-cmd.Po
577 -rm -f ./$(DEPDIR)/nsntrace-net.Po
578 -rm -f ./$(DEPDIR)/nsntrace-nsntrace.Po
579 -rm -f Makefile
580 distclean-am: clean-am distclean-compile distclean-generic \
581 distclean-tags
582
583 dvi: dvi-am
584
585 dvi-am:
586
587 html: html-am
588
589 html-am:
590
591 info: info-am
592
593 info-am:
594
595 install-data-am:
596
597 install-dvi: install-dvi-am
598
599 install-dvi-am:
600
601 install-exec-am: install-binPROGRAMS
602
603 install-html: install-html-am
604
605 install-html-am:
606
607 install-info: install-info-am
608
609 install-info-am:
610
611 install-man:
612
613 install-pdf: install-pdf-am
614
615 install-pdf-am:
616
617 install-ps: install-ps-am
618
619 install-ps-am:
620
621 installcheck-am:
622
623 maintainer-clean: maintainer-clean-am
624 -rm -f ./$(DEPDIR)/nsntrace-capture.Po
625 -rm -f ./$(DEPDIR)/nsntrace-cmd.Po
626 -rm -f ./$(DEPDIR)/nsntrace-net.Po
627 -rm -f ./$(DEPDIR)/nsntrace-nsntrace.Po
628 -rm -f Makefile
629 maintainer-clean-am: distclean-am maintainer-clean-generic
630
631 mostlyclean: mostlyclean-am
632
633 mostlyclean-am: mostlyclean-compile mostlyclean-generic
634
635 pdf: pdf-am
636
637 pdf-am:
638
639 ps: ps-am
640
641 ps-am:
642
643 uninstall-am: uninstall-binPROGRAMS
644
645 .MAKE: install-am install-strip
646
647 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
648 clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \
649 distclean distclean-compile distclean-generic distclean-tags \
650 distdir dvi dvi-am html html-am info info-am install \
651 install-am install-binPROGRAMS install-data install-data-am \
652 install-dvi install-dvi-am install-exec install-exec-am \
653 install-html install-html-am install-info install-info-am \
654 install-man install-pdf install-pdf-am install-ps \
655 install-ps-am install-strip installcheck installcheck-am \
656 installdirs maintainer-clean maintainer-clean-generic \
657 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
658 ps ps-am tags tags-am uninstall uninstall-am \
659 uninstall-binPROGRAMS
660
661 .PRECIOUS: Makefile
662
663
664 # Tell versions [3.59,3.63) of GNU make to not export all variables.
665 # Otherwise a system limit (for SysV at least) may be exceeded.
666 .NOEXPORT:
5454 * to interface with the Netlink API and perform network configuration.
5555 */
5656
57 #define IP_BASE "172.16.42"
58 #define NS_IP IP_BASE ".255"
59 #define GW_IP IP_BASE ".254"
60 #define NS_IP_RANGE NS_IP "/31"
61 #define GW_IP_RANGE GW_IP "/31"
62
63 #define IF_BASE "nsntrace"
64 #define NS_IF IF_BASE "-netns"
65 #define GW_IF IF_BASE
57 #define NS_IF_BASE "nscap"
58 #define GW_IF_BASE "nsgw"
59
60
6661
6762 static struct nl_sock *
6863 _nsntrace_net_get_nl_socket() {
292287 _nsntrace_net_create_resolv_conf()
293288 {
294289 int fd;
290 char resolv_path[PATH_MAX] = { 0, };
295291 const char *resolv = "nameserver 9.9.9.9\n" /* Quad9 */
296292 "nameserver 1.1.1.1\n" /* Cloudflare */
297293 "nameserver 8.8.8.8\n" /* Google */
298294 "nameserver 208.67.222.222\n"; /* OpenDNS */
299295
300 if (mkdir(NSNTRACE_RUN_DIR, 0644) < 0) {
301 if (errno != EEXIST) {
302 perror("mkdir");
303 return;
304 }
305 }
306
307 char resolv_path[] = NSNTRACE_RUN_DIR "/resolv.confXXXXXX";
296
297 snprintf(resolv_path, PATH_MAX, "%s/%d/resolv.confXXXXXX",
298 NSNTRACE_RUN_DIR, getppid());
308299 if ((fd = mkstemp(resolv_path)) < 0) {
309300 perror("mkstemp");
310301 return;
393384 }
394385
395386 /*
387 * Attempt to find a free ip base (172.19.x) to use. We use randomization
388 * and check addresses that are already bound to our devices, this is to
389 * enable us to run multiple instances of nsntrace.
390 */
391 static const char *
392 _nsntrace_net_get_ip_base()
393 {
394 char buf[1024];
395 char ip[16];
396 struct ifconf ifc;
397 struct timeval tval;
398 int s;
399 int i;
400
401 s = socket(AF_INET, SOCK_DGRAM, 0);
402 if(s < 0) {
403 perror("socket");
404 return NULL;
405 }
406
407 gettimeofday(&tval, NULL);
408 srand(tval.tv_usec);
409 while (1) {
410 int digit = rand() % 255;
411 snprintf(ip, 16, "172.19.%d", digit);
412
413 /* query available interfaces. */
414 ifc.ifc_len = sizeof(buf);
415 ifc.ifc_buf = buf;
416 if(ioctl(s, SIOCGIFCONF, &ifc) < 0)
417 {
418 perror("ioctl");
419 return NULL;
420 }
421
422 /* iterate through the list of interfaces. */
423 int found = 0;
424 for(i = 0; i < (ifc.ifc_len / sizeof(struct ifreq)); i++)
425 {
426 struct ifreq *item = &ifc.ifc_req[i];
427 char *addr = inet_ntoa(((struct sockaddr_in *)&item->ifr_addr)->sin_addr);
428
429 if (!strncmp(addr, ip, strlen(ip))) {
430 found = 1;
431 break;
432 }
433 }
434 if (found == 0) {
435 return strdup(ip);
436 }
437 }
438 return NULL;
439 }
440
441 int
442 nsntrace_net_get_if_info(pid_t pid,
443 struct nsntrace_if_info *info)
444 {
445 const char *ip_base = _nsntrace_net_get_ip_base();
446 if (!ip_base) {
447 fprintf(stderr, "failed to allocate IP address");
448 return -1;
449 }
450
451 snprintf(info->ns_if, IFNAMSIZ, "%s%d", NS_IF_BASE, pid);
452 snprintf(info->gw_if, IFNAMSIZ, "%s%d", GW_IF_BASE, pid);
453 snprintf(info->ns_ip, IP_ADDR_LEN, "%s.255", ip_base);
454 snprintf(info->gw_ip, IP_ADDR_LEN, "%s.254", ip_base);
455 snprintf(info->ns_ip_range, IP_ADDR_LEN + 3, "%s/31", info->ns_ip);
456 snprintf(info->gw_ip_range, IP_ADDR_LEN + 3, "%s/31", info->gw_ip);
457
458 return 0;
459 }
460
461 /*
396462 * Set up the environment needed from the root network namespace point
397463 * of view. Create virtual ethernet interface (see above) and set our side
398464 * of it up and set address.
401467 */
402468 int
403469 nsntrace_net_init(pid_t ns_pid,
404 const char *device)
470 const char *device,
471 struct nsntrace_if_info *info)
405472 {
406473 int ret = 0;
407474
408 if ((ret = _nsntrace_net_create_veth(GW_IF, NS_IF, ns_pid)) < 0) {
409 return ret;
410 }
411
412 if ((ret = _nsntrace_net_iface_up(GW_IF, GW_IP_RANGE, NULL)) < 0) {
413 return ret;
414 }
415
416 if ((ret = _nsntrace_net_set_nat(GW_IP_RANGE, GW_IF, device, 1)) < 0) {
475 if ((ret = _nsntrace_net_create_veth(info->gw_if, info->ns_if, ns_pid)) < 0) {
476 return ret;
477 }
478
479 if ((ret = _nsntrace_net_iface_up(info->gw_if, info->gw_ip_range, NULL)) < 0) {
480 return ret;
481 }
482
483 if ((ret = _nsntrace_net_set_nat(info->gw_ip_range, info->gw_if, device, 1)) < 0) {
417484 return ret;
418485 }
419486
425492 * Teardown the temporary network trickery we created in init.
426493 */
427494 int
428 nsntrace_net_deinit(const char *device)
495 nsntrace_net_deinit(pid_t ns_pid,
496 const char *device,
497 struct nsntrace_if_info *info)
429498 {
430499 int ret = 0;
431500
432 if ((ret = _nsntrace_net_set_nat(GW_IP_RANGE, GW_IF, device, 0)) < 0) {
433 return ret;
434 }
435
436 if ((ret = _nsntrace_net_iface_delete(NS_IF)) < 0) {
437 return ret;
438 }
439
440 if ((ret = _nsntrace_net_iface_delete(GW_IF)) < 0) {
501 if ((ret = _nsntrace_net_set_nat(info->gw_ip_range, info->gw_if, device, 0)) < 0) {
502 return ret;
503 }
504
505 if ((ret = _nsntrace_net_iface_delete(info->ns_if)) < 0) {
506 return ret;
507 }
508
509 if ((ret = _nsntrace_net_iface_delete(info->gw_if)) < 0) {
441510 return ret;
442511 }
443512
448517 * Set up the namespaced net infrastructure needed.
449518 */
450519 int
451 nsntrace_net_ns_init(int use_public_dns)
520 nsntrace_net_ns_init(int use_public_dns,
521 struct nsntrace_if_info *info)
452522 {
453523 int ret = 0;
454524
455 if ((ret = _nsntrace_net_iface_up(NS_IF, NS_IP_RANGE, GW_IP)) < 0) {
525 if ((ret = _nsntrace_net_iface_up(info->ns_if, info->ns_ip_range, info->gw_ip)) < 0) {
456526 return EXIT_FAILURE;
457527 }
458528
490560
491561 return ch == '1';
492562 }
493
494 const char *
495 nsntrace_net_get_capture_interface()
496 {
497 return NS_IF;
498 }
499
500 const char *
501 nsntrace_net_get_capture_ip()
502 {
503 return NS_IP;
504 }
1515 #ifndef _NSNTRACE_NET_H_
1616 #define _NSNTRACE_NET_H
1717
18 #include <linux/if.h>
19
20 #define IP_ADDR_LEN 16 // 4 sets of 3 numbers each separater by a dot + '\0'
1821 #define NSNTRACE_RUN_DIR "/run/nsntrace"
1922
23 struct nsntrace_if_info {
24 char ns_if[IFNAMSIZ];
25 char gw_if[IFNAMSIZ];
26 char ns_ip[16];
27 char gw_ip[16];
28 char ns_ip_range[19];
29 char gw_ip_range[19];
30 };
31
2032 int nsntrace_net_init(pid_t ns_pid,
21 const char *device);
33 const char *device,
34 struct nsntrace_if_info *info);
2235
23 int nsntrace_net_deinit(const char *device);
36 int nsntrace_net_deinit(pid_t ns_pid,
37 const char *device,
38 struct nsntrace_if_info *info);
2439
25 int nsntrace_net_ns_init(int use_public_dns);
40 int nsntrace_net_ns_init(int use_public_dns,
41 struct nsntrace_if_info *info);
2642
2743 int nsntrace_net_ip_forward_enabled();
2844
29 const char *nsntrace_net_get_capture_ip();
30
31 const char *nsntrace_net_get_capture_interface();
45 int nsntrace_net_get_if_info(pid_t pid,
46 struct nsntrace_if_info *info);
3247
3348 #endif
8181 char * const *args;
8282 };
8383
84 struct nsntrace_common {
85 struct nsntrace_options *options;
86 struct nsntrace_if_info if_info;
87 };
88
8489 #define PUBLIC_DNS 1000
8590 static const char *short_opt = "+o:d:u:f:h";
8691 static struct option long_opt[] = {
145150 return rv;
146151 }
147152
153 static void
154 _nsntrace_remove_rundir(pid_t pid)
155 {
156 char path[PATH_MAX] = { 0, };
157
158 snprintf(path, PATH_MAX, "%s/%d", NSNTRACE_RUN_DIR, getppid());
159 nftw(path, _nsntrace_unlink_cb, 64, FTW_DEPTH | FTW_PHYS);
160 }
161
148162 static void _nsntrace_remove_ns()
149163 {
150164 char netns_path[PATH_MAX];
156170 }
157171
158172 /* clean up run-time files */
159 nftw(NSNTRACE_RUN_DIR, _nsntrace_unlink_cb, 64, FTW_DEPTH | FTW_PHYS);
173 _nsntrace_remove_rundir(getppid());
160174 }
161175
162176 static void
225239 }
226240
227241 static void
228 _nsntrace_start_tracer(struct nsntrace_options *options)
242 _nsntrace_start_tracer(struct nsntrace_options *options,
243 struct nsntrace_if_info *info)
229244 {
230245 int ret;
231 const char *ip;
232 const char *interface;
233
234246 /*
235247 * If outfile is a lone dash ("-"), the user wants us to output to STDOUT,
236248 * in that case we avoid printing anything else to STDOUT and use STDERR
249261 }
250262 }
251263
252 ip = nsntrace_net_get_capture_ip();
253 interface = nsntrace_net_get_capture_interface();
254
255264 fprintf(where, "Starting network trace of '%s' on interface %s.\n"
256265 "Your IP address in this trace is %s.\n"
257266 "Use ctrl-c to end at any time.\n\n",
258 options->args[0], options->device, ip);
259 ret = nsntrace_capture_start(interface, options->filter, fp);
267 options->args[0], options->device, info->ns_ip);
268 ret = nsntrace_capture_start(info->ns_if, options->filter, fp);
260269 if (ret != 0) {
261270 exit(ret);
262271 }
343352 netns_main(void *arg) {
344353 int status;
345354 int ret = EXIT_SUCCESS;
346 struct nsntrace_options *options = (struct nsntrace_options *) arg;
347
348 if (nsntrace_net_ns_init(options->use_public_dns) < 0) {
355 struct nsntrace_common *common = (struct nsntrace_common *) arg;
356 struct nsntrace_options *options = common->options;
357
358 if (nsntrace_net_ns_init(options->use_public_dns, &common->if_info) < 0) {
349359 fprintf(stderr, "failed to setup network environment\n");
350360 return EXIT_FAILURE;
351361 }
352362
353363 _nsntrace_handle_signals(_nsntrace_cleanup_ns_signal_callback);
354 _nsntrace_start_tracer(options);
364 _nsntrace_start_tracer(common->options, &common->if_info);
355365
356366 _nsntrace_set_name();
357367
383393 _nsntrace_cleanup_ns();
384394 exit(ret);
385395 } else { /* child - tracee */
386 _nsntrace_start_tracee(options);
396 _nsntrace_start_tracee(common->options);
387397 }
388398
389399 return ret;
462472 }
463473 }
464474
475 /*
476 * Create the pid based run dir for this nsntrace instance.
477 * This is for storing run-time files and to be able to cleanup
478 * easily without removing other nsntrace instances files.
479 */
480 static void
481 _nsntrace_mkrundir()
482 {
483 char path[PATH_MAX] = { 0, };
484
485 if (mkdir(NSNTRACE_RUN_DIR, 0644) < 0) {
486 if (errno != EEXIST) {
487 perror("mkdir");
488 }
489 }
490 snprintf(path, PATH_MAX, "%s/%d", NSNTRACE_RUN_DIR, getpid());
491 if (mkdir(path, 0644) < 0) {
492 if (errno != EEXIST) {
493 perror("mkdir");
494 }
495 }
496 }
497
465498 int
466499 main(int argc, char **argv)
467500 {
468501 struct nsntrace_options options = { 0 };
469 pid_t pid;
502 struct nsntrace_common common = { &options, };
503 pid_t pid = 0;
470504 int status;
471505 int ret = EXIT_SUCCESS;
472506
489523 exit(EXIT_FAILURE);
490524 }
491525
526 _nsntrace_mkrundir();
527
528 if (nsntrace_net_get_if_info(getpid(), &common.if_info) < 0) {
529 ret = EXIT_FAILURE;
530 goto out;
531 }
532
492533 /* here we create a new process in a new network namespace */
493534 pid = clone(netns_main, child_stack + STACK_SIZE,
494 CLONE_NEWNET | SIGCHLD, &options);
535 CLONE_NEWNET | SIGCHLD, &common);
495536 if (pid < 0) {
496 fprintf(stderr, "clone failed\n");
497 exit(EXIT_FAILURE);
537 perror("clone");
538 ret = EXIT_FAILURE;
539 goto out;
498540 }
499541
500542 _nsntrace_handle_signals(_nsntrace_cleanup);
501543
502 if ((ret = nsntrace_net_init(pid, options.device)) < 0 ||
503 (ret = nsntrace_capture_check_device(options.device))) {
544 if ((ret = nsntrace_net_init(pid, options.device, &common.if_info)) < 0 ||
545 (ret = nsntrace_capture_check_device(options.device))) {
504546 fprintf(stderr, "Failed to setup networking environment\n");
505547 kill(pid, SIGKILL);
506548 goto out;
515557 }
516558
517559 out:
518 nsntrace_net_deinit(options.device);
560 if (pid != 0) {
561 nsntrace_net_deinit(pid, options.device, &common.if_info);
562 }
563 _nsntrace_remove_rundir(getpid());
519564 return ret;
520565 }
0 #! /bin/sh
1 # test-driver - basic testsuite driver script.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # This file is maintained in Automake, please report
26 # bugs to <bug-automake@gnu.org> or send patches to
27 # <automake-patches@gnu.org>.
28
29 # Make unconditional expansion of undefined variables an error. This
30 # helps a lot in preventing typo-related bugs.
31 set -u
32
33 usage_error ()
34 {
35 echo "$0: $*" >&2
36 print_usage >&2
37 exit 2
38 }
39
40 print_usage ()
41 {
42 cat <<END
43 Usage:
44 test-driver --test-name NAME --log-file PATH --trs-file PATH
45 [--expect-failure {yes|no}] [--color-tests {yes|no}]
46 [--enable-hard-errors {yes|no}] [--]
47 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
49 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
50 See the GNU Automake documentation for information.
51 END
52 }
53
54 test_name= # Used for reporting.
55 log_file= # Where to save the output of the test script.
56 trs_file= # Where to save the metadata of the test run.
57 expect_failure=no
58 color_tests=no
59 enable_hard_errors=yes
60 while test $# -gt 0; do
61 case $1 in
62 --help) print_usage; exit $?;;
63 --version) echo "test-driver $scriptversion"; exit $?;;
64 --test-name) test_name=$2; shift;;
65 --log-file) log_file=$2; shift;;
66 --trs-file) trs_file=$2; shift;;
67 --color-tests) color_tests=$2; shift;;
68 --expect-failure) expect_failure=$2; shift;;
69 --enable-hard-errors) enable_hard_errors=$2; shift;;
70 --) shift; break;;
71 -*) usage_error "invalid option: '$1'";;
72 *) break;;
73 esac
74 shift
75 done
76
77 missing_opts=
78 test x"$test_name" = x && missing_opts="$missing_opts --test-name"
79 test x"$log_file" = x && missing_opts="$missing_opts --log-file"
80 test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
81 if test x"$missing_opts" != x; then
82 usage_error "the following mandatory options are missing:$missing_opts"
83 fi
84
85 if test $# -eq 0; then
86 usage_error "missing argument"
87 fi
88
89 if test $color_tests = yes; then
90 # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
91 red='' # Red.
92 grn='' # Green.
93 lgn='' # Light green.
94 blu='' # Blue.
95 mgn='' # Magenta.
96 std='' # No color.
97 else
98 red= grn= lgn= blu= mgn= std=
99 fi
100
101 do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
102 trap "st=129; $do_exit" 1
103 trap "st=130; $do_exit" 2
104 trap "st=141; $do_exit" 13
105 trap "st=143; $do_exit" 15
106
107 # Test script is run here. We create the file first, then append to it,
108 # to ameliorate tests themselves also writing to the log file. Our tests
109 # don't, but others can (automake bug#35762).
110 : >"$log_file"
111 "$@" >>"$log_file" 2>&1
112 estatus=$?
113
114 if test $enable_hard_errors = no && test $estatus -eq 99; then
115 tweaked_estatus=1
116 else
117 tweaked_estatus=$estatus
118 fi
119
120 case $tweaked_estatus:$expect_failure in
121 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
122 0:*) col=$grn res=PASS recheck=no gcopy=no;;
123 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
124 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
125 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
126 *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
127 esac
128
129 # Report the test outcome and exit status in the logs, so that one can
130 # know whether the test passed or failed simply by looking at the '.log'
131 # file, without the need of also peaking into the corresponding '.trs'
132 # file (automake bug#11814).
133 echo "$res $test_name (exit status: $estatus)" >>"$log_file"
134
135 # Report outcome to console.
136 echo "${col}${res}${std}: $test_name"
137
138 # Register the test result, and other relevant metadata.
139 echo ":test-result: $res" > $trs_file
140 echo ":global-test-result: $res" >> $trs_file
141 echo ":recheck: $recheck" >> $trs_file
142 echo ":copy-in-global-log: $gcopy" >> $trs_file
143
144 # Local Variables:
145 # mode: shell-script
146 # sh-indentation: 2
147 # eval: (add-hook 'before-save-hook 'time-stamp)
148 # time-stamp-start: "scriptversion="
149 # time-stamp-format: "%:y-%02m-%02d.%02H"
150 # time-stamp-time-zone: "UTC0"
151 # time-stamp-end: "; # UTC"
152 # End:
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 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 = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
27 am__make_running_with_option = \
28 case $${target_option-} in \
29 ?) ;; \
30 *) echo "am__make_running_with_option: internal error: invalid" \
31 "target option '$${target_option-}' specified" >&2; \
32 exit 1;; \
33 esac; \
34 has_opt=no; \
35 sane_makeflags=$$MAKEFLAGS; \
36 if $(am__is_gnu_make); then \
37 sane_makeflags=$$MFLAGS; \
38 else \
39 case $$MAKEFLAGS in \
40 *\\[\ \ ]*) \
41 bs=\\; \
42 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
43 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
44 esac; \
45 fi; \
46 skip_next=no; \
47 strip_trailopt () \
48 { \
49 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
50 }; \
51 for flg in $$sane_makeflags; do \
52 test $$skip_next = yes && { skip_next=no; continue; }; \
53 case $$flg in \
54 *=*|--*) continue;; \
55 -*I) strip_trailopt 'I'; skip_next=yes;; \
56 -*I?*) strip_trailopt 'I';; \
57 -*O) strip_trailopt 'O'; skip_next=yes;; \
58 -*O?*) strip_trailopt 'O';; \
59 -*l) strip_trailopt 'l'; skip_next=yes;; \
60 -*l?*) strip_trailopt 'l';; \
61 -[dEDm]) skip_next=yes;; \
62 -[JT]) skip_next=yes;; \
63 esac; \
64 case $$flg in \
65 *$$target_option*) has_opt=yes; break;; \
66 esac; \
67 done; \
68 test $$has_opt = yes
69 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
70 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
71 pkgdatadir = $(datadir)/@PACKAGE@
72 pkgincludedir = $(includedir)/@PACKAGE@
73 pkglibdir = $(libdir)/@PACKAGE@
74 pkglibexecdir = $(libexecdir)/@PACKAGE@
75 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
76 install_sh_DATA = $(install_sh) -c -m 644
77 install_sh_PROGRAM = $(install_sh) -c
78 install_sh_SCRIPT = $(install_sh) -c
79 INSTALL_HEADER = $(INSTALL_DATA)
80 transform = $(program_transform_name)
81 NORMAL_INSTALL = :
82 PRE_INSTALL = :
83 POST_INSTALL = :
84 NORMAL_UNINSTALL = :
85 PRE_UNINSTALL = :
86 POST_UNINSTALL = :
87 subdir = tests
88 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
89 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
90 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91 $(ACLOCAL_M4)
92 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
93 mkinstalldirs = $(install_sh) -d
94 CONFIG_HEADER = $(top_builddir)/config.h
95 CONFIG_CLEAN_FILES =
96 CONFIG_CLEAN_VPATH_FILES =
97 AM_V_P = $(am__v_P_@AM_V@)
98 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
99 am__v_P_0 = false
100 am__v_P_1 = :
101 AM_V_GEN = $(am__v_GEN_@AM_V@)
102 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
103 am__v_GEN_0 = @echo " GEN " $@;
104 am__v_GEN_1 =
105 AM_V_at = $(am__v_at_@AM_V@)
106 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
107 am__v_at_0 = @
108 am__v_at_1 =
109 SOURCES =
110 DIST_SOURCES =
111 am__can_run_installinfo = \
112 case $$AM_UPDATE_INFO_DIR in \
113 n|no|NO) false;; \
114 *) (install-info --version) >/dev/null 2>&1;; \
115 esac
116 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
117 am__tty_colors_dummy = \
118 mgn= red= grn= lgn= blu= brg= std=; \
119 am__color_tests=no
120 am__tty_colors = { \
121 $(am__tty_colors_dummy); \
122 if test "X$(AM_COLOR_TESTS)" = Xno; then \
123 am__color_tests=no; \
124 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
125 am__color_tests=yes; \
126 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
127 am__color_tests=yes; \
128 fi; \
129 if test $$am__color_tests = yes; then \
130 red=''; \
131 grn=''; \
132 lgn=''; \
133 blu=''; \
134 mgn=''; \
135 brg=''; \
136 std=''; \
137 fi; \
138 }
139 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
140 am__vpath_adj = case $$p in \
141 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
142 *) f=$$p;; \
143 esac;
144 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
145 am__install_max = 40
146 am__nobase_strip_setup = \
147 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
148 am__nobase_strip = \
149 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
150 am__nobase_list = $(am__nobase_strip_setup); \
151 for p in $$list; do echo "$$p $$p"; done | \
152 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
153 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
154 if (++n[$$2] == $(am__install_max)) \
155 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
156 END { for (dir in files) print dir, files[dir] }'
157 am__base_list = \
158 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
159 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
160 am__uninstall_files_from_dir = { \
161 test -z "$$files" \
162 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
163 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
164 $(am__cd) "$$dir" && rm -f $$files; }; \
165 }
166 am__recheck_rx = ^[ ]*:recheck:[ ]*
167 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
168 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
169 # A command that, given a newline-separated list of test names on the
170 # standard input, print the name of the tests that are to be re-run
171 # upon "make recheck".
172 am__list_recheck_tests = $(AWK) '{ \
173 recheck = 1; \
174 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
175 { \
176 if (rc < 0) \
177 { \
178 if ((getline line2 < ($$0 ".log")) < 0) \
179 recheck = 0; \
180 break; \
181 } \
182 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
183 { \
184 recheck = 0; \
185 break; \
186 } \
187 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
188 { \
189 break; \
190 } \
191 }; \
192 if (recheck) \
193 print $$0; \
194 close ($$0 ".trs"); \
195 close ($$0 ".log"); \
196 }'
197 # A command that, given a newline-separated list of test names on the
198 # standard input, create the global log from their .trs and .log files.
199 am__create_global_log = $(AWK) ' \
200 function fatal(msg) \
201 { \
202 print "fatal: making $@: " msg | "cat >&2"; \
203 exit 1; \
204 } \
205 function rst_section(header) \
206 { \
207 print header; \
208 len = length(header); \
209 for (i = 1; i <= len; i = i + 1) \
210 printf "="; \
211 printf "\n\n"; \
212 } \
213 { \
214 copy_in_global_log = 1; \
215 global_test_result = "RUN"; \
216 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
217 { \
218 if (rc < 0) \
219 fatal("failed to read from " $$0 ".trs"); \
220 if (line ~ /$(am__global_test_result_rx)/) \
221 { \
222 sub("$(am__global_test_result_rx)", "", line); \
223 sub("[ ]*$$", "", line); \
224 global_test_result = line; \
225 } \
226 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
227 copy_in_global_log = 0; \
228 }; \
229 if (copy_in_global_log) \
230 { \
231 rst_section(global_test_result ": " $$0); \
232 while ((rc = (getline line < ($$0 ".log"))) != 0) \
233 { \
234 if (rc < 0) \
235 fatal("failed to read from " $$0 ".log"); \
236 print line; \
237 }; \
238 printf "\n"; \
239 }; \
240 close ($$0 ".trs"); \
241 close ($$0 ".log"); \
242 }'
243 # Restructured Text title.
244 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
245 # Solaris 10 'make', and several other traditional 'make' implementations,
246 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
247 # by disabling -e (using the XSI extension "set +e") if it's set.
248 am__sh_e_setup = case $$- in *e*) set +e;; esac
249 # Default flags passed to test drivers.
250 am__common_driver_flags = \
251 --color-tests "$$am__color_tests" \
252 --enable-hard-errors "$$am__enable_hard_errors" \
253 --expect-failure "$$am__expect_failure"
254 # To be inserted before the command running the test. Creates the
255 # directory for the log if needed. Stores in $dir the directory
256 # containing $f, in $tst the test, in $log the log. Executes the
257 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
258 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
259 # will run the test scripts (or their associated LOG_COMPILER, if
260 # thy have one).
261 am__check_pre = \
262 $(am__sh_e_setup); \
263 $(am__vpath_adj_setup) $(am__vpath_adj) \
264 $(am__tty_colors); \
265 srcdir=$(srcdir); export srcdir; \
266 case "$@" in \
267 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
268 *) am__odir=.;; \
269 esac; \
270 test "x$$am__odir" = x"." || test -d "$$am__odir" \
271 || $(MKDIR_P) "$$am__odir" || exit $$?; \
272 if test -f "./$$f"; then dir=./; \
273 elif test -f "$$f"; then dir=; \
274 else dir="$(srcdir)/"; fi; \
275 tst=$$dir$$f; log='$@'; \
276 if test -n '$(DISABLE_HARD_ERRORS)'; then \
277 am__enable_hard_errors=no; \
278 else \
279 am__enable_hard_errors=yes; \
280 fi; \
281 case " $(XFAIL_TESTS) " in \
282 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
283 am__expect_failure=yes;; \
284 *) \
285 am__expect_failure=no;; \
286 esac; \
287 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
288 # A shell command to get the names of the tests scripts with any registered
289 # extension removed (i.e., equivalently, the names of the test logs, with
290 # the '.log' extension removed). The result is saved in the shell variable
291 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
292 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
293 # since that might cause problem with VPATH rewrites for suffix-less tests.
294 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
295 am__set_TESTS_bases = \
296 bases='$(TEST_LOGS)'; \
297 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
298 bases=`echo $$bases`
299 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
300 RECHECK_LOGS = $(TEST_LOGS)
301 AM_RECURSIVE_TARGETS = check recheck
302 TEST_SUITE_LOG = test-suite.log
303 TEST_EXTENSIONS = @EXEEXT@ .test
304 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
305 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
306 am__set_b = \
307 case '$@' in \
308 */*) \
309 case '$*' in \
310 */*) b='$*';; \
311 *) b=`echo '$@' | sed 's/\.log$$//'`; \
312 esac;; \
313 *) \
314 b='$*';; \
315 esac
316 am__test_logs1 = $(TESTS:=.log)
317 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
318 TEST_LOGS = $(am__test_logs2:.test.log=.log)
319 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
320 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
321 $(TEST_LOG_FLAGS)
322 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
323 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
324 ACLOCAL = @ACLOCAL@
325 AMTAR = @AMTAR@
326 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
327 AUTOCONF = @AUTOCONF@
328 AUTOHEADER = @AUTOHEADER@
329 AUTOMAKE = @AUTOMAKE@
330 AWK = @AWK@
331 CC = @CC@
332 CCDEPMODE = @CCDEPMODE@
333 CFLAGS = @CFLAGS@
334 CPPFLAGS = @CPPFLAGS@
335 CSCOPE = @CSCOPE@
336 CTAGS = @CTAGS@
337 CYGPATH_W = @CYGPATH_W@
338 DEFS = @DEFS@
339 DEPDIR = @DEPDIR@
340 ECHO_C = @ECHO_C@
341 ECHO_N = @ECHO_N@
342 ECHO_T = @ECHO_T@
343 ETAGS = @ETAGS@
344 EXEEXT = @EXEEXT@
345 INSTALL = @INSTALL@
346 INSTALL_DATA = @INSTALL_DATA@
347 INSTALL_PROGRAM = @INSTALL_PROGRAM@
348 INSTALL_SCRIPT = @INSTALL_SCRIPT@
349 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
350 IPTABLES_CHECK = @IPTABLES_CHECK@
351 LDFLAGS = @LDFLAGS@
352 LIBNL_CFLAGS = @LIBNL_CFLAGS@
353 LIBNL_LIBS = @LIBNL_LIBS@
354 LIBOBJS = @LIBOBJS@
355 LIBS = @LIBS@
356 LTLIBOBJS = @LTLIBOBJS@
357 MAKEINFO = @MAKEINFO@
358 MKDIR_P = @MKDIR_P@
359 OBJEXT = @OBJEXT@
360 PACKAGE = @PACKAGE@
361 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
362 PACKAGE_NAME = @PACKAGE_NAME@
363 PACKAGE_STRING = @PACKAGE_STRING@
364 PACKAGE_TARNAME = @PACKAGE_TARNAME@
365 PACKAGE_URL = @PACKAGE_URL@
366 PACKAGE_VERSION = @PACKAGE_VERSION@
367 PATH_SEPARATOR = @PATH_SEPARATOR@
368 PKG_CONFIG = @PKG_CONFIG@
369 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
370 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
371 SET_MAKE = @SET_MAKE@
372 SHELL = @SHELL@
373 STRIP = @STRIP@
374 VERSION = @VERSION@
375 XSLTPROC = @XSLTPROC@
376 abs_builddir = @abs_builddir@
377 abs_srcdir = @abs_srcdir@
378 abs_top_builddir = @abs_top_builddir@
379 abs_top_srcdir = @abs_top_srcdir@
380 ac_ct_CC = @ac_ct_CC@
381 am__include = @am__include@
382 am__leading_dot = @am__leading_dot@
383 am__quote = @am__quote@
384 am__tar = @am__tar@
385 am__untar = @am__untar@
386 bindir = @bindir@
387 build_alias = @build_alias@
388 builddir = @builddir@
389 datadir = @datadir@
390 datarootdir = @datarootdir@
391 docdir = @docdir@
392 dvidir = @dvidir@
393 exec_prefix = @exec_prefix@
394 host_alias = @host_alias@
395 htmldir = @htmldir@
396 includedir = @includedir@
397 infodir = @infodir@
398 install_sh = @install_sh@
399 libdir = @libdir@
400 libexecdir = @libexecdir@
401 localedir = @localedir@
402 localstatedir = @localstatedir@
403 mandir = @mandir@
404 mkdir_p = @mkdir_p@
405 oldincludedir = @oldincludedir@
406 pdfdir = @pdfdir@
407 prefix = @prefix@
408 program_transform_name = @program_transform_name@
409 psdir = @psdir@
410 runstatedir = @runstatedir@
411 sbindir = @sbindir@
412 sharedstatedir = @sharedstatedir@
413 srcdir = @srcdir@
414 sysconfdir = @sysconfdir@
415 target_alias = @target_alias@
416 top_build_prefix = @top_build_prefix@
417 top_builddir = @top_builddir@
418 top_srcdir = @top_srcdir@
419 TESTS = \
420 check_namespaced.sh \
421 check_cleanup.sh \
422 check_return_code.sh
423
424 CLEANFILES = udp_send
425 EXTRA_DIST = $(TESTS) test_program_dummy.sh udp_send.c
426 all: all-am
427
428 .SUFFIXES:
429 .SUFFIXES: .log .test .test$(EXEEXT) .trs
430 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
431 @for dep in $?; do \
432 case '$(am__configure_deps)' in \
433 *$$dep*) \
434 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
435 && { if test -f $@; then exit 0; else break; fi; }; \
436 exit 1;; \
437 esac; \
438 done; \
439 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \
440 $(am__cd) $(top_srcdir) && \
441 $(AUTOMAKE) --foreign tests/Makefile
442 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
443 @case '$?' in \
444 *config.status*) \
445 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
446 *) \
447 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
448 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
449 esac;
450
451 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
452 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
453
454 $(top_srcdir)/configure: $(am__configure_deps)
455 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
456 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458 $(am__aclocal_m4_deps):
459 tags TAGS:
460
461 ctags CTAGS:
462
463 cscope cscopelist:
464
465
466 # Recover from deleted '.trs' file; this should ensure that
467 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
468 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
469 # to avoid problems with "make -n".
470 .log.trs:
471 rm -f $< $@
472 $(MAKE) $(AM_MAKEFLAGS) $<
473
474 # Leading 'am--fnord' is there to ensure the list of targets does not
475 # expand to empty, as could happen e.g. with make check TESTS=''.
476 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
477 am--force-recheck:
478 @:
479
480 $(TEST_SUITE_LOG): $(TEST_LOGS)
481 @$(am__set_TESTS_bases); \
482 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
483 redo_bases=`for i in $$bases; do \
484 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
485 done`; \
486 if test -n "$$redo_bases"; then \
487 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
488 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
489 if $(am__make_dryrun); then :; else \
490 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
491 fi; \
492 fi; \
493 if test -n "$$am__remaking_logs"; then \
494 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
495 "recursion detected" >&2; \
496 elif test -n "$$redo_logs"; then \
497 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
498 fi; \
499 if $(am__make_dryrun); then :; else \
500 st=0; \
501 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
502 for i in $$redo_bases; do \
503 test -f $$i.trs && test -r $$i.trs \
504 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
505 test -f $$i.log && test -r $$i.log \
506 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
507 done; \
508 test $$st -eq 0 || exit 1; \
509 fi
510 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
511 ws='[ ]'; \
512 results=`for b in $$bases; do echo $$b.trs; done`; \
513 test -n "$$results" || results=/dev/null; \
514 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
515 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
516 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
517 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
518 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
519 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
520 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
521 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
522 success=true; \
523 else \
524 success=false; \
525 fi; \
526 br='==================='; br=$$br$$br$$br$$br; \
527 result_count () \
528 { \
529 if test x"$$1" = x"--maybe-color"; then \
530 maybe_colorize=yes; \
531 elif test x"$$1" = x"--no-color"; then \
532 maybe_colorize=no; \
533 else \
534 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
535 fi; \
536 shift; \
537 desc=$$1 count=$$2; \
538 if test $$maybe_colorize = yes && test $$count -gt 0; then \
539 color_start=$$3 color_end=$$std; \
540 else \
541 color_start= color_end=; \
542 fi; \
543 echo "$${color_start}# $$desc $$count$${color_end}"; \
544 }; \
545 create_testsuite_report () \
546 { \
547 result_count $$1 "TOTAL:" $$all "$$brg"; \
548 result_count $$1 "PASS: " $$pass "$$grn"; \
549 result_count $$1 "SKIP: " $$skip "$$blu"; \
550 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
551 result_count $$1 "FAIL: " $$fail "$$red"; \
552 result_count $$1 "XPASS:" $$xpass "$$red"; \
553 result_count $$1 "ERROR:" $$error "$$mgn"; \
554 }; \
555 { \
556 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
557 $(am__rst_title); \
558 create_testsuite_report --no-color; \
559 echo; \
560 echo ".. contents:: :depth: 2"; \
561 echo; \
562 for b in $$bases; do echo $$b; done \
563 | $(am__create_global_log); \
564 } >$(TEST_SUITE_LOG).tmp || exit 1; \
565 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
566 if $$success; then \
567 col="$$grn"; \
568 else \
569 col="$$red"; \
570 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
571 fi; \
572 echo "$${col}$$br$${std}"; \
573 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
574 echo "$${col}$$br$${std}"; \
575 create_testsuite_report --maybe-color; \
576 echo "$$col$$br$$std"; \
577 if $$success; then :; else \
578 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
579 if test -n "$(PACKAGE_BUGREPORT)"; then \
580 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
581 fi; \
582 echo "$$col$$br$$std"; \
583 fi; \
584 $$success || exit 1
585
586 check-TESTS:
587 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
588 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
589 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
590 @set +e; $(am__set_TESTS_bases); \
591 log_list=`for i in $$bases; do echo $$i.log; done`; \
592 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
593 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
594 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
595 exit $$?;
596 recheck: all
597 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
598 @set +e; $(am__set_TESTS_bases); \
599 bases=`for i in $$bases; do echo $$i; done \
600 | $(am__list_recheck_tests)` || exit 1; \
601 log_list=`for i in $$bases; do echo $$i.log; done`; \
602 log_list=`echo $$log_list`; \
603 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
604 am__force_recheck=am--force-recheck \
605 TEST_LOGS="$$log_list"; \
606 exit $$?
607 check_namespaced.sh.log: check_namespaced.sh
608 @p='check_namespaced.sh'; \
609 b='check_namespaced.sh'; \
610 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
611 --log-file $$b.log --trs-file $$b.trs \
612 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
613 "$$tst" $(AM_TESTS_FD_REDIRECT)
614 check_cleanup.sh.log: check_cleanup.sh
615 @p='check_cleanup.sh'; \
616 b='check_cleanup.sh'; \
617 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
618 --log-file $$b.log --trs-file $$b.trs \
619 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
620 "$$tst" $(AM_TESTS_FD_REDIRECT)
621 check_return_code.sh.log: check_return_code.sh
622 @p='check_return_code.sh'; \
623 b='check_return_code.sh'; \
624 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
625 --log-file $$b.log --trs-file $$b.trs \
626 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
627 "$$tst" $(AM_TESTS_FD_REDIRECT)
628 .test.log:
629 @p='$<'; \
630 $(am__set_b); \
631 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
636 @am__EXEEXT_TRUE@ @p='$<'; \
637 @am__EXEEXT_TRUE@ $(am__set_b); \
638 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
640 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
642 distdir: $(BUILT_SOURCES)
643 $(MAKE) $(AM_MAKEFLAGS) distdir-am
644
645 distdir-am: $(DISTFILES)
646 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
647 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
648 list='$(DISTFILES)'; \
649 dist_files=`for file in $$list; do echo $$file; done | \
650 sed -e "s|^$$srcdirstrip/||;t" \
651 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
652 case $$dist_files in \
653 */*) $(MKDIR_P) `echo "$$dist_files" | \
654 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
655 sort -u` ;; \
656 esac; \
657 for file in $$dist_files; do \
658 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
659 if test -d $$d/$$file; then \
660 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
661 if test -d "$(distdir)/$$file"; then \
662 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
663 fi; \
664 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
665 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
666 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
667 fi; \
668 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
669 else \
670 test -f "$(distdir)/$$file" \
671 || cp -p $$d/$$file "$(distdir)/$$file" \
672 || exit 1; \
673 fi; \
674 done
675 check-am: all-am
676 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
677 check: check-am
678 all-am: Makefile
679 installdirs:
680 install: install-am
681 install-exec: install-exec-am
682 install-data: install-data-am
683 uninstall: uninstall-am
684
685 install-am: all-am
686 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
687
688 installcheck: installcheck-am
689 install-strip:
690 if test -z '$(STRIP)'; then \
691 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
692 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
693 install; \
694 else \
695 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
696 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
697 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
698 fi
699 mostlyclean-generic:
700 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
701 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
702 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
703
704 clean-generic:
705 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
706
707 distclean-generic:
708 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
709 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
710
711 maintainer-clean-generic:
712 @echo "This command is intended for maintainers to use"
713 @echo "it deletes files that may require special tools to rebuild."
714 clean: clean-am
715
716 clean-am: clean-generic mostlyclean-am
717
718 distclean: distclean-am
719 -rm -f Makefile
720 distclean-am: clean-am distclean-generic
721
722 dvi: dvi-am
723
724 dvi-am:
725
726 html: html-am
727
728 html-am:
729
730 info: info-am
731
732 info-am:
733
734 install-data-am:
735
736 install-dvi: install-dvi-am
737
738 install-dvi-am:
739
740 install-exec-am:
741
742 install-html: install-html-am
743
744 install-html-am:
745
746 install-info: install-info-am
747
748 install-info-am:
749
750 install-man:
751
752 install-pdf: install-pdf-am
753
754 install-pdf-am:
755
756 install-ps: install-ps-am
757
758 install-ps-am:
759
760 installcheck-am:
761
762 maintainer-clean: maintainer-clean-am
763 -rm -f Makefile
764 maintainer-clean-am: distclean-am maintainer-clean-generic
765
766 mostlyclean: mostlyclean-am
767
768 mostlyclean-am: mostlyclean-generic
769
770 pdf: pdf-am
771
772 pdf-am:
773
774 ps: ps-am
775
776 ps-am:
777
778 uninstall-am:
779
780 .MAKE: check-am install-am install-strip
781
782 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
783 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
784 dvi-am html html-am info info-am install install-am \
785 install-data install-data-am install-dvi install-dvi-am \
786 install-exec install-exec-am install-html install-html-am \
787 install-info install-info-am install-man install-pdf \
788 install-pdf-am install-ps install-ps-am install-strip \
789 installcheck installcheck-am installdirs maintainer-clean \
790 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
791 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
792
793 .PRECIOUS: Makefile
794
795
796 check_namespaced.sh: udp_send
797
798 udp_send: udp_send.c
799 $(CC) $^ -o $@
800
801 # Tell versions [3.59,3.63) of GNU make to not export all variables.
802 # Otherwise a system limit (for SysV at least) may be exceeded.
803 .NOEXPORT:
00 #!/bin/sh
11
22 # HUP INT QUIT ABRT SEGV TERM
3 signals='1 2 3 6 11 15'
3 set -- 1 2 3 6 11 15
44 timeout=1
55 ip="172.16.42.254"
66 if=nsntrace
99 # sleep to allow for cleanup after signal
1010 sleep 1
1111
12 (sudo iptables -w -t nat -L | grep $ip) && {
12 (sudo iptables -w -t nat -L | grep "$ip") && {
1313 echo "Rules not cleaned up after signal $signal"
1414 exit 1
1515 }
1616
17 (sudo ip link | grep $if) && {
17 (sudo ip link | grep "$if") && {
1818 echo "Link not cleaned up after signal $signal"
1919 exit 1
2020 }
2121
22 ls /run/nsntrace > /dev/null 2>&1 && {
22 ls "/run/nsntrace/$1" > /dev/null 2>&1 && {
2323 echo "run-time files not cleaned up after signal $signal"
2424 exit 1
2525 }
2626
27 rm -rf *.pcap
27 rm -f -- *.pcap
2828 }
2929
3030 start_and_kill() {
31 local signal=$1
31 sig="$1"
3232
3333 sudo ../src/nsntrace ./test_program_dummy.sh &
34 sleep $timeout
34 sleep "$timeout"
3535 pid=$(pidof nsntrace)
36 sudo kill -$signal $pid
36 sudo kill "-$sig" "$pid"
3737
38 check_cleanup
38 check_cleanup "$pid"
39 unset sig
3940 }
4041
41 for signal in $signals; do
42 start_and_kill $signal
42 for signal ; do
43 start_and_kill "$signal"
4344 done
4445
46 sudo ../src/nsntrace ./test_program_dummy_ends.sh
47 check_cleanup "$!"
48
4549 exit 0
00 #!/bin/sh
11
22 packets=99
3 cmd="./udp_send 1337 $packets"
43 filter="udp port 1337"
54
65 # start sending packages non-namespaced
76 ./udp_send 1337 -1 &
87
98 # stop the non-namespaced udp_send on exit
10 trap "kill $(pidof udp_send)" EXIT
9 pidof_udp_send=$(pidof udp_send)
10 trap 'kill "$pidof_udp_send"' EXIT
1111
1212 # make sure we only capture the packets from the namespaced version
13 sudo ../src/nsntrace -d lo -f "$filter" $cmd | grep "$packets packets" || {
13 sudo ../src/nsntrace -d lo -f "$filter" ./udp_send 1337 "$packets" | grep "$packets packets" || {
1414 echo "Did not capture $packets packets!"
1515 exit 1
1616 }
2626 check_return_code 1 -o /path/does/not/exist /bin/true
2727 check_return_code 1 -d invalid_device /bin/true
2828
29 rm -rf *.pcap
29 rm -f -- *.pcap
3030
3131 exit ${RET}
00 #!/bin/sh
11
2 while [ 1 ]; do
2 while true ; do
33 sleep 1
44 done
1010 int main(int argc, char **argv)
1111 {
1212 struct sockaddr_in addr = { 0 };
13 int port, num, s;
13 int port, num, s, interval = 0;
1414
15 if (argc != 3) {
16 fprintf(stderr, "usage: udp_send port num_packets\n");
15 if (argc < 3) {
16 fprintf(stderr, "usage: udp_send port num_packets [interval]\n");
1717 exit(EXIT_FAILURE);
1818 }
1919 port = atoi(argv[1]);
2020 num = atoi(argv[2]);
21
22 if (argc > 3) {
23 interval = atoi(argv[3]);
24 }
2125
2226 if ((s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
2327 fprintf(stderr, "failed to create socket\n");
3842 fprintf(stderr, "failed to send message\n");
3943 exit(EXIT_FAILURE);
4044 }
45
46 sleep(interval);
4147 }
4248
4349 return 0;