Codebase list lldpd / e02b5b4
Imported Upstream version 0.7.4 Vincent Bernat 10 years ago
72 changed file(s) with 6143 addition(s) and 3956 deletion(s). Raw diff Collapse all Expand all
0 0.7.3
0 0.7.4
0 0.7.4 [2013-06-22 12:15:47 +0200]:
1
2 - [1381217] bpf: on OpenBSD, invert the filter direction (Vincent Bernat)
3 - [96b97fa] NEWS: add an entry for the use of `setproctitle()` (Vincent Bernat)
4 - [f0d2157] compat: declare `setproctitle()` as a printf function (Vincent Bernat)
5 - [19ce813] debian: build-depends on libbssd-dev (Vincent Bernat)
6 - [e7103af] lldpd: when no `setproctitle()` available, don't count neighbors (Vincent Bernat)
7 - [480f1c6] lldpd: count number of chassis to get number of neighbors (Vincent Bernat)
8 - [25eb187] lldpd: don't call `lldpd_count_neighbors()` too many times (Vincent Bernat)
9 - [66879d4] build: use libbsd if available, also use `setproctitle()` (Vincent Bernat)
10 - [3f70e11] lldpcli: `configure system platform` to override platform description (Vincent Bernat)
11 - [decaec0] lldpcli: `configure system description` to override chassis description (Vincent Bernat)
12 - [994b337] lldpcli: split `conf.c` into `conf-system.c` and `conf-lldp.c`. (Vincent Bernat)
13 - [48d0a4b] lldpcli: `configure system interface pattern` instead of `configure lldp iface-pattern` (Vincent Bernat)
14 - [a3e0896] libevent: use GitHub git tree (Vincent Bernat)
15 - [c11e397] debian: sync packaging with official Debian package (Vincent Bernat)
16 - [e39f079] libevent: switch to patches-2.0 branch to get the appropriate automake fix (Vincent Bernat)
17 - [8677ddc] git: ignore test-driver, generated by recent automake versions (Vincent Bernat)
18 - [bea0d76] Fixed some boundary conditions in code that cleans remote ports on ttl expiry. (Roopa Prabhu)
19 - [5aeda65] liblldpctl: fix infinite loop when user is reading fixed chunks (Pradosh Mohapatra)
20 - [d823429] marshal: fix alignment issue when unserializing (Vincent Bernat)
21 - [bea7031] log: fix memory leak when using a log handler (Vincent Bernat)
22 - [a8da186] marshal: don't declare serialize/unserialize helper for string (Vincent Bernat)
23 - [02cf035] lldpd: fix an alignment (non-)issue (Vincent Bernat)
24 - [bd8a886] lldpcli: don't use an hack to pass the writer to watch callback (Vincent Bernat)
25 - [985a4cb] marshal: provide type-specific serialization/unserialization functions (Vincent Bernat)
26 - [aba549a] client: fix a memory leak when changing lldpd configuration (Vincent Bernat)
27 - [93afd29] ctl: fix a memory leak when cleaning control socket (Vincent Bernat)
28 - [e681c85] client: trigger interface refresh when updating interface pattern (Vincent Bernat)
29 - [e26a25c] lib: fix a memory leak when modifying interface pattern (Vincent Bernat)
30 - [0093777] lldpcli: document "configure lldp iface-pattern" in manual page (Vincent Bernat)
31 - [7e516f1] lldpctl.h: document possibility to write iface-pattern (Vincent Bernat)
32 - [346a0f6] lldpcli: Add support to set iface-pattern (roopa)
33 - [0728cb8] sonmp: allow SONMP unittests to work without a global config (Vincent Bernat)
34 - [ea481e3] man: document tx-hold (Vincent Bernat)
35 - [cb5f739] man: tx-interval cannot be set per port (Vincent Bernat)
36 - [c10302a] lldpd: Add tx_hold (roopa)
37 - [5920dbf] lldpcli: don't rely on `fgetln()` providing a NULL-terminated string (Vincent Bernat)
38 - [655145c] lldpcli: don't free input line (Vincent Bernat)
39 - [d1dc456] lib: keep space for new values in `lldpctl_key_t` (Vincent Bernat)
40 - [40116b4] debian: synchronize packaging with Debian (Vincent Bernat)
41 - [e91ca9d] release: prepare 0.7.3 (Vincent Bernat)
42
043 0.7.3 [2013-05-09 00:05:36 +0200]:
144
245 - [a1728b7] NEWS: add a word about Solaris support (Vincent Bernat)
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
4544 # This is usually added to MOSTLYCLEANFILES.
4645
4746 VPATH = @srcdir@
48 am__make_dryrun = \
49 { \
50 am__dry=no; \
47 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
48 am__make_running_with_option = \
49 case $${target_option-} in \
50 ?) ;; \
51 *) echo "am__make_running_with_option: internal error: invalid" \
52 "target option '$${target_option-}' specified" >&2; \
53 exit 1;; \
54 esac; \
55 has_opt=no; \
56 sane_makeflags=$$MAKEFLAGS; \
57 if $(am__is_gnu_make); then \
58 sane_makeflags=$$MFLAGS; \
59 else \
5160 case $$MAKEFLAGS in \
5261 *\\[\ \ ]*) \
53 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
54 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
55 *) \
56 for am__flg in $$MAKEFLAGS; do \
57 case $$am__flg in \
58 *=*|--*) ;; \
59 *n*) am__dry=yes; break;; \
60 esac; \
61 done;; \
62 bs=\\; \
63 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
64 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
6265 esac; \
63 test $$am__dry = yes; \
64 }
66 fi; \
67 skip_next=no; \
68 strip_trailopt () \
69 { \
70 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
71 }; \
72 for flg in $$sane_makeflags; do \
73 test $$skip_next = yes && { skip_next=no; continue; }; \
74 case $$flg in \
75 *=*|--*) continue;; \
76 -*I) strip_trailopt 'I'; skip_next=yes;; \
77 -*I?*) strip_trailopt 'I';; \
78 -*O) strip_trailopt 'O'; skip_next=yes;; \
79 -*O?*) strip_trailopt 'O';; \
80 -*l) strip_trailopt 'l'; skip_next=yes;; \
81 -*l?*) strip_trailopt 'l';; \
82 -[dEDm]) skip_next=yes;; \
83 -[JT]) skip_next=yes;; \
84 esac; \
85 case $$flg in \
86 *$$target_option*) has_opt=yes; break;; \
87 esac; \
88 done; \
89 test $$has_opt = yes
90 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
91 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
6592 pkgdatadir = $(datadir)/@PACKAGE@
6693 pkgincludedir = $(includedir)/@PACKAGE@
6794 pkglibdir = $(libdir)/@PACKAGE@
80107 POST_UNINSTALL = :
81108 build_triplet = @build@
82109 host_triplet = @host@
83 DIST_COMMON = $(am__configure_deps) $(dist_doc_DATA) \
84 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
85 $(srcdir)/config.h.in $(srcdir)/doxygen.am \
86 $(top_srcdir)/configure ChangeLog NEWS ar-lib compile \
87 config.guess config.sub depcomp install-sh ltmain.sh missing
110 DIST_COMMON = $(srcdir)/doxygen.am $(srcdir)/Makefile.in \
111 $(srcdir)/Makefile.am $(top_srcdir)/configure \
112 $(am__configure_deps) $(srcdir)/config.h.in $(dist_doc_DATA) \
113 ChangeLog NEWS ar-lib compile config.guess config.sub depcomp \
114 install-sh missing ltmain.sh
88115 subdir = .
89116 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
90117 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
107134 CONFIG_HEADER = config.h
108135 CONFIG_CLEAN_FILES =
109136 CONFIG_CLEAN_VPATH_FILES =
137 AM_V_P = $(am__v_P_@AM_V@)
138 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
139 am__v_P_0 = false
140 am__v_P_1 = :
110141 AM_V_GEN = $(am__v_GEN_@AM_V@)
111142 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
112 am__v_GEN_0 = @echo " GEN " $@;
143 am__v_GEN_0 = @echo " GEN " $@;
144 am__v_GEN_1 =
113145 AM_V_at = $(am__v_at_@AM_V@)
114146 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
115147 am__v_at_0 = @
148 am__v_at_1 =
116149 SOURCES =
117150 DIST_SOURCES =
118 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
119 html-recursive info-recursive install-data-recursive \
120 install-dvi-recursive install-exec-recursive \
121 install-html-recursive install-info-recursive \
122 install-pdf-recursive install-ps-recursive install-recursive \
123 installcheck-recursive installdirs-recursive pdf-recursive \
124 ps-recursive uninstall-recursive
151 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
152 ctags-recursive dvi-recursive html-recursive info-recursive \
153 install-data-recursive install-dvi-recursive \
154 install-exec-recursive install-html-recursive \
155 install-info-recursive install-pdf-recursive \
156 install-ps-recursive install-recursive installcheck-recursive \
157 installdirs-recursive pdf-recursive ps-recursive \
158 tags-recursive uninstall-recursive
125159 am__can_run_installinfo = \
126160 case $$AM_UPDATE_INFO_DIR in \
127161 n|no|NO) false;; \
158192 DATA = $(dist_doc_DATA) $(doc_DATA)
159193 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
160194 distclean-recursive maintainer-clean-recursive
161 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
162 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
163 distdir dist dist-all distcheck
195 am__recursive_targets = \
196 $(RECURSIVE_TARGETS) \
197 $(RECURSIVE_CLEAN_TARGETS) \
198 $(am__extra_recursive_targets)
199 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
200 cscope distdir dist dist-all distcheck
201 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
202 $(LISP)config.h.in
203 # Read a list of newline-separated strings from the standard input,
204 # and print each of them once, without duplicates. Input order is
205 # *not* preserved.
206 am__uniquify_input = $(AWK) '\
207 BEGIN { nonempty = 0; } \
208 { items[$$0] = 1; nonempty = 1; } \
209 END { if (nonempty) { for (i in items) print i; }; } \
210 '
211 # Make sure the list of sources is unique. This is necessary because,
212 # e.g., the same source file might be shared among _SOURCES variables
213 # for different programs/libraries.
214 am__define_uniq_tagged_files = \
215 list='$(am__tagged_files)'; \
216 unique=`for i in $$list; do \
217 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
218 done | $(am__uniquify_input)`
164219 ETAGS = etags
165220 CTAGS = ctags
221 CSCOPE = cscope
166222 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
167223 distdir = $(PACKAGE)-$(VERSION)
168224 top_distdir = $(distdir)
172228 && rm -rf "$(distdir)" \
173229 || { sleep 5 && rm -rf "$(distdir)"; }; \
174230 else :; fi
231 am__post_remove_distdir = $(am__remove_distdir)
175232 am__relativize = \
176233 dir0=`pwd`; \
177234 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
199256 reldir="$$dir2"
200257 DIST_ARCHIVES = $(distdir).tar.gz
201258 GZIP_ENV = --best
259 DIST_TARGETS = dist-gzip
202260 distuninstallcheck_listfiles = find . -type f -print
203261 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
204262 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
504562 dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
505563
506564 # This directory's subdirectories are mostly independent; you can cd
507 # into them and run `make' without going through this Makefile.
508 # To change the values of `make' variables: instead of editing Makefiles,
509 # (1) if the variable is set in `config.status', edit `config.status'
510 # (which will cause the Makefiles to be regenerated when you run `make');
511 # (2) otherwise, pass the desired values on the `make' command line.
512 $(RECURSIVE_TARGETS):
513 @fail= failcom='exit 1'; \
514 for f in x $$MAKEFLAGS; do \
515 case $$f in \
516 *=* | --[!k]*);; \
517 *k*) failcom='fail=yes';; \
518 esac; \
519 done; \
565 # into them and run 'make' without going through this Makefile.
566 # To change the values of 'make' variables: instead of editing Makefiles,
567 # (1) if the variable is set in 'config.status', edit 'config.status'
568 # (which will cause the Makefiles to be regenerated when you run 'make');
569 # (2) otherwise, pass the desired values on the 'make' command line.
570 $(am__recursive_targets):
571 @fail=; \
572 if $(am__make_keepgoing); then \
573 failcom='fail=yes'; \
574 else \
575 failcom='exit 1'; \
576 fi; \
520577 dot_seen=no; \
521578 target=`echo $@ | sed s/-recursive//`; \
522 list='$(SUBDIRS)'; for subdir in $$list; do \
579 case "$@" in \
580 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
581 *) list='$(SUBDIRS)' ;; \
582 esac; \
583 for subdir in $$list; do \
523584 echo "Making $$target in $$subdir"; \
524585 if test "$$subdir" = "."; then \
525586 dot_seen=yes; \
534595 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
535596 fi; test -z "$$fail"
536597
537 $(RECURSIVE_CLEAN_TARGETS):
538 @fail= failcom='exit 1'; \
539 for f in x $$MAKEFLAGS; do \
540 case $$f in \
541 *=* | --[!k]*);; \
542 *k*) failcom='fail=yes';; \
543 esac; \
544 done; \
545 dot_seen=no; \
546 case "$@" in \
547 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
548 *) list='$(SUBDIRS)' ;; \
549 esac; \
550 rev=''; for subdir in $$list; do \
551 if test "$$subdir" = "."; then :; else \
552 rev="$$subdir $$rev"; \
553 fi; \
554 done; \
555 rev="$$rev ."; \
556 target=`echo $@ | sed s/-recursive//`; \
557 for subdir in $$rev; do \
558 echo "Making $$target in $$subdir"; \
559 if test "$$subdir" = "."; then \
560 local_target="$$target-am"; \
561 else \
562 local_target="$$target"; \
563 fi; \
564 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
565 || eval $$failcom; \
566 done && test -z "$$fail"
567 tags-recursive:
568 list='$(SUBDIRS)'; for subdir in $$list; do \
569 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
570 done
571 ctags-recursive:
572 list='$(SUBDIRS)'; for subdir in $$list; do \
573 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
574 done
575
576 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
577 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
578 unique=`for i in $$list; do \
579 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
580 done | \
581 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
582 END { if (nonempty) { for (i in files) print i; }; }'`; \
583 mkid -fID $$unique
584 tags: TAGS
585
586 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
587 $(TAGS_FILES) $(LISP)
598 ID: $(am__tagged_files)
599 $(am__define_uniq_tagged_files); mkid -fID $$unique
600 tags: tags-recursive
601 TAGS: tags
602
603 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
588604 set x; \
589605 here=`pwd`; \
590606 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
600616 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
601617 fi; \
602618 done; \
603 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
604 unique=`for i in $$list; do \
605 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
606 done | \
607 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
608 END { if (nonempty) { for (i in files) print i; }; }'`; \
619 $(am__define_uniq_tagged_files); \
609620 shift; \
610621 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
611622 test -n "$$unique" || unique=$$empty_fix; \
617628 $$unique; \
618629 fi; \
619630 fi
620 ctags: CTAGS
621 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
622 $(TAGS_FILES) $(LISP)
623 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
624 unique=`for i in $$list; do \
625 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
626 done | \
627 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
628 END { if (nonempty) { for (i in files) print i; }; }'`; \
631 ctags: ctags-recursive
632
633 CTAGS: ctags
634 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
635 $(am__define_uniq_tagged_files); \
629636 test -z "$(CTAGS_ARGS)$$unique" \
630637 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
631638 $$unique
634641 here=`$(am__cd) $(top_builddir) && pwd` \
635642 && $(am__cd) $(top_srcdir) \
636643 && gtags -i $(GTAGS_ARGS) "$$here"
644 cscope: cscope.files
645 test ! -s cscope.files \
646 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
647 clean-cscope:
648 -rm -f cscope.files
649 cscope.files: clean-cscope cscopelist
650 cscopelist: cscopelist-recursive
651
652 cscopelist-am: $(am__tagged_files)
653 list='$(am__tagged_files)'; \
654 case "$(srcdir)" in \
655 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
656 *) sdir=$(subdir)/$(srcdir) ;; \
657 esac; \
658 for i in $$list; do \
659 if test -f "$$i"; then \
660 echo "$(subdir)/$$i"; \
661 else \
662 echo "$$sdir/$$i"; \
663 fi; \
664 done >> $(top_builddir)/cscope.files
637665
638666 distclean-tags:
639667 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
668 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
640669
641670 distdir: $(DISTFILES)
642671 $(am__remove_distdir)
707736 || chmod -R a+r "$(distdir)"
708737 dist-gzip: distdir
709738 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
710 $(am__remove_distdir)
739 $(am__post_remove_distdir)
711740
712741 dist-bzip2: distdir
713742 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
714 $(am__remove_distdir)
743 $(am__post_remove_distdir)
715744
716745 dist-lzip: distdir
717746 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
718 $(am__remove_distdir)
719
720 dist-lzma: distdir
721 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
722 $(am__remove_distdir)
747 $(am__post_remove_distdir)
723748
724749 dist-xz: distdir
725750 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
726 $(am__remove_distdir)
751 $(am__post_remove_distdir)
727752
728753 dist-tarZ: distdir
729754 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
730 $(am__remove_distdir)
755 $(am__post_remove_distdir)
731756
732757 dist-shar: distdir
733758 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
734 $(am__remove_distdir)
759 $(am__post_remove_distdir)
735760
736761 dist-zip: distdir
737762 -rm -f $(distdir).zip
738763 zip -rq $(distdir).zip $(distdir)
739 $(am__remove_distdir)
740
741 dist dist-all: distdir
742 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
743 $(am__remove_distdir)
764 $(am__post_remove_distdir)
765
766 dist dist-all:
767 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
768 $(am__post_remove_distdir)
744769
745770 # This target untars the dist file and tries a VPATH configuration. Then
746771 # it guarantees that the distribution is self-contained by making another
751776 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
752777 *.tar.bz2*) \
753778 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
754 *.tar.lzma*) \
755 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
756779 *.tar.lz*) \
757780 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
758781 *.tar.xz*) \
764787 *.zip*) \
765788 unzip $(distdir).zip ;;\
766789 esac
767 chmod -R a-w $(distdir); chmod u+w $(distdir)
768 mkdir $(distdir)/_build
769 mkdir $(distdir)/_inst
790 chmod -R a-w $(distdir)
791 chmod u+w $(distdir)
792 mkdir $(distdir)/_build $(distdir)/_inst
770793 chmod a-w $(distdir)
771794 test -d $(distdir)/_build || exit 0; \
772795 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
798821 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
799822 && cd "$$am__cwd" \
800823 || exit 1
801 $(am__remove_distdir)
824 $(am__post_remove_distdir)
802825 @(echo "$(distdir) archives ready for distribution: "; \
803826 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
804827 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
938961
939962 uninstall-am: uninstall-dist_docDATA uninstall-docDATA
940963
941 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
942 ctags-recursive install-am install-strip tags-recursive
943
944 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
945 all all-am am--refresh check check-am clean clean-generic \
946 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
947 dist-gzip dist-hook dist-lzip dist-lzma dist-shar dist-tarZ \
948 dist-xz dist-zip distcheck distclean distclean-generic \
949 distclean-hdr distclean-libtool distclean-tags distcleancheck \
950 distdir distuninstallcheck dvi dvi-am html html-am info \
951 info-am install install-am install-data install-data-am \
952 install-dist_docDATA install-docDATA install-dvi \
953 install-dvi-am install-exec install-exec-am install-html \
954 install-html-am install-info install-info-am install-man \
955 install-pdf install-pdf-am install-ps install-ps-am \
956 install-strip installcheck installcheck-am installdirs \
957 installdirs-am maintainer-clean maintainer-clean-generic \
958 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
959 ps ps-am tags tags-recursive uninstall uninstall-am \
960 uninstall-dist_docDATA uninstall-docDATA
964 .MAKE: $(am__recursive_targets) all install-am install-strip
965
966 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
967 am--refresh check check-am clean clean-cscope clean-generic \
968 clean-libtool cscope cscopelist-am ctags ctags-am dist \
969 dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \
970 dist-tarZ dist-xz dist-zip distcheck distclean \
971 distclean-generic distclean-hdr distclean-libtool \
972 distclean-tags distcleancheck distdir distuninstallcheck dvi \
973 dvi-am html html-am info info-am install install-am \
974 install-data install-data-am install-dist_docDATA \
975 install-docDATA install-dvi install-dvi-am install-exec \
976 install-exec-am install-html install-html-am install-info \
977 install-info-am install-man install-pdf install-pdf-am \
978 install-ps install-ps-am install-strip installcheck \
979 installcheck-am installdirs installdirs-am maintainer-clean \
980 maintainer-clean-generic mostlyclean mostlyclean-generic \
981 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
982 uninstall-am uninstall-dist_docDATA uninstall-docDATA
961983
962984
963985 @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
0 lldpd (0.7.4)
1 * Fixes:
2 + Segfault in lldpcli.
3 + Memory leak in liblldpctl when using a custom log handler.
4 + Fix some unaligned memory accesses.
5 + Fix frame reception on OpenBSD.
6 * Features:
7 + Allow to configure hold value from lldpcli (and hence the TTL).
8 + Allow to configure pattern for valid interfaces from lldpcli.
9 + Allow to override system description from lldpcli.
10 + Display the neighbor connected as the process title (or the
11 number of connected neighbors).
12
013 lldpd (0.7.3)
114 * Features:
215 + DragonFly BSD support.
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.13.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1110 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1211 # PARTICULAR PURPOSE.
1312
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1616 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
1717 [m4_warning([this file was generated for autoconf 2.69.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 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'.])])
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
2222 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2323 # serial 1 (pkg-config-0.24)
179179 fi[]dnl
180180 ])# PKG_CHECK_MODULES
181181
182 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
183 # Foundation, Inc.
184 #
185 # This file is free software; the Free Software Foundation
186 # gives unlimited permission to copy and/or distribute it,
187 # with or without modifications, as long as this notice is preserved.
188
189 # serial 1
182 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
183 #
184 # This file is free software; the Free Software Foundation
185 # gives unlimited permission to copy and/or distribute it,
186 # with or without modifications, as long as this notice is preserved.
190187
191188 # AM_AUTOMAKE_VERSION(VERSION)
192189 # ----------------------------
194191 # generated from the m4 files accompanying Automake X.Y.
195192 # (This private macro should not be called outside this file.)
196193 AC_DEFUN([AM_AUTOMAKE_VERSION],
197 [am__api_version='1.11'
194 [am__api_version='1.13'
198195 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
199196 dnl require some minimum version. Point them to the right macro.
200 m4_if([$1], [1.11.6], [],
197 m4_if([$1], [1.13.3], [],
201198 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
202199 ])
203200
213210 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
214211 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
215212 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
216 [AM_AUTOMAKE_VERSION([1.11.6])dnl
213 [AM_AUTOMAKE_VERSION([1.13.3])dnl
217214 m4_ifndef([AC_AUTOCONF_VERSION],
218215 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
219216 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
220217
221 # Copyright (C) 2011 Free Software Foundation, Inc.
222 #
223 # This file is free software; the Free Software Foundation
224 # gives unlimited permission to copy and/or distribute it,
225 # with or without modifications, as long as this notice is preserved.
226
227 # serial 1
218 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
219 #
220 # This file is free software; the Free Software Foundation
221 # gives unlimited permission to copy and/or distribute it,
222 # with or without modifications, as long as this notice is preserved.
228223
229224 # AM_PROG_AR([ACT-IF-FAIL])
230225 # -------------------------
281276
282277 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
283278
284 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
285 #
286 # This file is free software; the Free Software Foundation
287 # gives unlimited permission to copy and/or distribute it,
288 # with or without modifications, as long as this notice is preserved.
289
290 # serial 1
279 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
280 #
281 # This file is free software; the Free Software Foundation
282 # gives unlimited permission to copy and/or distribute it,
283 # with or without modifications, as long as this notice is preserved.
291284
292285 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
293 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
294 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
286 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
287 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
295288 #
296289 # Of course, Automake must honor this variable whenever it calls a
297290 # tool from the auxiliary directory. The problem is that $srcdir (and
310303 #
311304 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
312305 # are both prefixed by $srcdir. In an in-source build this is usually
313 # harmless because $srcdir is `.', but things will broke when you
306 # harmless because $srcdir is '.', but things will broke when you
314307 # start a VPATH build or use an absolute $srcdir.
315308 #
316309 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
336329
337330 # AM_CONDITIONAL -*- Autoconf -*-
338331
339 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
340 # Free Software Foundation, Inc.
341 #
342 # This file is free software; the Free Software Foundation
343 # gives unlimited permission to copy and/or distribute it,
344 # with or without modifications, as long as this notice is preserved.
345
346 # serial 9
332 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
333 #
334 # This file is free software; the Free Software Foundation
335 # gives unlimited permission to copy and/or distribute it,
336 # with or without modifications, as long as this notice is preserved.
347337
348338 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
349339 # -------------------------------------
350340 # Define a conditional.
351341 AC_DEFUN([AM_CONDITIONAL],
352 [AC_PREREQ(2.52)dnl
353 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
354 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
342 [AC_PREREQ([2.52])dnl
343 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
344 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
355345 AC_SUBST([$1_TRUE])dnl
356346 AC_SUBST([$1_FALSE])dnl
357347 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
370360 Usually this means the macro was only invoked conditionally.]])
371361 fi])])
372362
373 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
374 # 2010, 2011 Free Software Foundation, Inc.
375 #
376 # This file is free software; the Free Software Foundation
377 # gives unlimited permission to copy and/or distribute it,
378 # with or without modifications, as long as this notice is preserved.
379
380 # serial 12
381
382 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
363 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
364 #
365 # This file is free software; the Free Software Foundation
366 # gives unlimited permission to copy and/or distribute it,
367 # with or without modifications, as long as this notice is preserved.
368
369
370 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
383371 # written in clear, in which case automake, when reading aclocal.m4,
384372 # will think it sees a *use*, and therefore will trigger all it's
385373 # C support machinery. Also note that it means that autoscan, seeing
389377 # _AM_DEPENDENCIES(NAME)
390378 # ----------------------
391379 # See how the compiler implements dependency checking.
392 # NAME is "CC", "CXX", "GCJ", or "OBJC".
380 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
393381 # We try a few techniques and use that to set a single cache variable.
394382 #
395383 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
402390 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
403391 AC_REQUIRE([AM_DEP_TRACK])dnl
404392
405 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
406 [$1], CXX, [depcc="$CXX" am_compiler_list=],
407 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
408 [$1], UPC, [depcc="$UPC" am_compiler_list=],
409 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
410 [depcc="$$1" am_compiler_list=])
393 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
394 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
395 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
396 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
397 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
398 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
399 [depcc="$$1" am_compiler_list=])
411400
412401 AC_CACHE_CHECK([dependency style of $depcc],
413402 [am_cv_$1_dependencies_compiler_type],
415404 # We make a subdir and do the tests there. Otherwise we can end up
416405 # making bogus files that we don't know about and never remove. For
417406 # instance it was reported that on HP-UX the gcc test will end up
418 # making a dummy file named `D' -- because `-MD' means `put the output
419 # in D'.
407 # making a dummy file named 'D' -- because '-MD' means "put the output
408 # in D".
420409 rm -rf conftest.dir
421410 mkdir conftest.dir
422411 # Copy depcomp to subdir because otherwise we won't find it if we're
456445 : > sub/conftest.c
457446 for i in 1 2 3 4 5 6; do
458447 echo '#include "conftst'$i'.h"' >> sub/conftest.c
459 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
460 # Solaris 8's {/usr,}/bin/sh.
461 touch sub/conftst$i.h
448 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
449 # Solaris 10 /bin/sh.
450 echo '/* dummy */' > sub/conftst$i.h
462451 done
463452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
464453
465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
454 # We check with '-c' and '-o' for the sake of the "dashmstdout"
466455 # mode. It turns out that the SunPro C++ compiler does not properly
467 # handle `-M -o', and we need to detect this. Also, some Intel
468 # versions had trouble with output in subdirs
456 # handle '-M -o', and we need to detect this. Also, some Intel
457 # versions had trouble with output in subdirs.
469458 am__obj=sub/conftest.${OBJEXT-o}
470459 am__minus_obj="-o $am__obj"
471460 case $depmode in
474463 test "$am__universal" = false || continue
475464 ;;
476465 nosideeffect)
477 # after this tag, mechanisms are not by side-effect, so they'll
478 # only be used when explicitly requested
466 # After this tag, mechanisms are not by side-effect, so they'll
467 # only be used when explicitly requested.
479468 if test "x$enable_dependency_tracking" = xyes; then
480469 continue
481470 else
483472 fi
484473 ;;
485474 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
486 # This compiler won't grok `-c -o', but also, the minuso test has
475 # This compiler won't grok '-c -o', but also, the minuso test has
487476 # not run yet. These depmodes are late enough in the game, and
488477 # so weak that their functioning should not be impacted.
489478 am__obj=conftest.${OBJEXT-o}
531520 # AM_SET_DEPDIR
532521 # -------------
533522 # Choose a directory name for dependency files.
534 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
523 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
535524 AC_DEFUN([AM_SET_DEPDIR],
536525 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
537526 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
541530 # AM_DEP_TRACK
542531 # ------------
543532 AC_DEFUN([AM_DEP_TRACK],
544 [AC_ARG_ENABLE(dependency-tracking,
545 [ --disable-dependency-tracking speeds up one-time build
546 --enable-dependency-tracking do not reject slow dependency extractors])
533 [AC_ARG_ENABLE([dependency-tracking], [dnl
534 AS_HELP_STRING(
535 [--enable-dependency-tracking],
536 [do not reject slow dependency extractors])
537 AS_HELP_STRING(
538 [--disable-dependency-tracking],
539 [speeds up one-time build])])
547540 if test "x$enable_dependency_tracking" != xno; then
548541 am_depcomp="$ac_aux_dir/depcomp"
549542 AMDEPBACKSLASH='\'
558551
559552 # Generate code to set up dependency tracking. -*- Autoconf -*-
560553
561 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
562 # Free Software Foundation, Inc.
563 #
564 # This file is free software; the Free Software Foundation
565 # gives unlimited permission to copy and/or distribute it,
566 # with or without modifications, as long as this notice is preserved.
567
568 #serial 5
554 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
555 #
556 # This file is free software; the Free Software Foundation
557 # gives unlimited permission to copy and/or distribute it,
558 # with or without modifications, as long as this notice is preserved.
559
569560
570561 # _AM_OUTPUT_DEPENDENCY_COMMANDS
571562 # ------------------------------
572563 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
573564 [{
574 # Autoconf 2.62 quotes --file arguments for eval, but not when files
565 # Older Autoconf quotes --file arguments for eval, but not when files
575566 # are listed without --file. Let's play safe and only enable the eval
576567 # if we detect the quoting.
577568 case $CONFIG_FILES in
584575 # Strip MF so we end up with the name of the file.
585576 mf=`echo "$mf" | sed -e 's/:.*$//'`
586577 # Check whether this is an Automake generated Makefile or not.
587 # We used to match only the files named `Makefile.in', but
578 # We used to match only the files named 'Makefile.in', but
588579 # some people rename them; so instead we look at the file content.
589580 # Grep'ing the first line is not enough: some people post-process
590581 # each Makefile.in and add a new line on top of each file to say so.
596587 continue
597588 fi
598589 # Extract the definition of DEPDIR, am__include, and am__quote
599 # from the Makefile without running `make'.
590 # from the Makefile without running 'make'.
600591 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
601592 test -z "$DEPDIR" && continue
602593 am__include=`sed -n 's/^am__include = //p' < "$mf"`
603 test -z "am__include" && continue
594 test -z "$am__include" && continue
604595 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
605 # When using ansi2knr, U may be empty or an underscore; expand it
606 U=`sed -n 's/^U = //p' < "$mf"`
607596 # Find all dependency output files, they are included files with
608597 # $(DEPDIR) in their names. We invoke sed twice because it is the
609598 # simplest approach to changing $(DEPDIR) to its actual value in the
610599 # expansion.
611600 for file in `sed -n "
612601 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
613 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
602 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
614603 # Make sure the directory exists.
615604 test -f "$dirpart/$file" && continue
616605 fdir=`AS_DIRNAME(["$file"])`
628617 # This macro should only be invoked once -- use via AC_REQUIRE.
629618 #
630619 # This code is only required when automatic dependency tracking
631 # is enabled. FIXME. This creates each `.P' file that we will
620 # is enabled. FIXME. This creates each '.P' file that we will
632621 # need in order to bootstrap the dependency handling code.
633622 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
634623 [AC_CONFIG_COMMANDS([depfiles],
638627
639628 # Do all the work for Automake. -*- Autoconf -*-
640629
641 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
642 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
643 #
644 # This file is free software; the Free Software Foundation
645 # gives unlimited permission to copy and/or distribute it,
646 # with or without modifications, as long as this notice is preserved.
647
648 # serial 16
630 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
631 #
632 # This file is free software; the Free Software Foundation
633 # gives unlimited permission to copy and/or distribute it,
634 # with or without modifications, as long as this notice is preserved.
649635
650636 # This macro actually does too much. Some checks are only needed if
651637 # your package does certain things. But this isn't really a big deal.
662648 # arguments mandatory, and then we can depend on a new Autoconf
663649 # release and drop the old call support.
664650 AC_DEFUN([AM_INIT_AUTOMAKE],
665 [AC_PREREQ([2.62])dnl
651 [AC_PREREQ([2.65])dnl
666652 dnl Autoconf wants to disallow AM_ names. We explicitly allow
667653 dnl the ones we care about.
668654 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
691677 # Define the identity of the package.
692678 dnl Distinguish between old-style and new-style calls.
693679 m4_ifval([$2],
694 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
680 [AC_DIAGNOSE([obsolete],
681 [$0: two- and three-arguments forms are deprecated.])
682 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
695683 AC_SUBST([PACKAGE], [$1])dnl
696684 AC_SUBST([VERSION], [$2])],
697685 [_AM_SET_OPTIONS([$1])dnl
698686 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
699 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
687 m4_if(
688 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
689 [ok:ok],,
700690 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
701691 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
702692 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
703693
704694 _AM_IF_OPTION([no-define],,
705 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
706 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
695 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
696 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
707697
708698 # Some tools Automake needs.
709699 AC_REQUIRE([AM_SANITY_CHECK])dnl
710700 AC_REQUIRE([AC_ARG_PROGRAM])dnl
711 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
712 AM_MISSING_PROG(AUTOCONF, autoconf)
713 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
714 AM_MISSING_PROG(AUTOHEADER, autoheader)
715 AM_MISSING_PROG(MAKEINFO, makeinfo)
701 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
702 AM_MISSING_PROG([AUTOCONF], [autoconf])
703 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
704 AM_MISSING_PROG([AUTOHEADER], [autoheader])
705 AM_MISSING_PROG([MAKEINFO], [makeinfo])
716706 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
717707 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
718 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
708 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
709 # For better backward compatibility. To be removed once Automake 1.9.x
710 # dies out for good. For more background, see:
711 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
712 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
713 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
719714 # We need awk for the "check" target. The system "awk" is bad on
720715 # some platforms.
721716 AC_REQUIRE([AC_PROG_AWK])dnl
726721 [_AM_PROG_TAR([v7])])])
727722 _AM_IF_OPTION([no-dependencies],,
728723 [AC_PROVIDE_IFELSE([AC_PROG_CC],
729 [_AM_DEPENDENCIES(CC)],
730 [define([AC_PROG_CC],
731 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
724 [_AM_DEPENDENCIES([CC])],
725 [m4_define([AC_PROG_CC],
726 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
732727 AC_PROVIDE_IFELSE([AC_PROG_CXX],
733 [_AM_DEPENDENCIES(CXX)],
734 [define([AC_PROG_CXX],
735 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
728 [_AM_DEPENDENCIES([CXX])],
729 [m4_define([AC_PROG_CXX],
730 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
736731 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
737 [_AM_DEPENDENCIES(OBJC)],
738 [define([AC_PROG_OBJC],
739 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
740 ])
741 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
742 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
743 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
744 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
732 [_AM_DEPENDENCIES([OBJC])],
733 [m4_define([AC_PROG_OBJC],
734 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
735 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
736 [_AM_DEPENDENCIES([OBJCXX])],
737 [m4_define([AC_PROG_OBJCXX],
738 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
739 ])
740 AC_REQUIRE([AM_SILENT_RULES])dnl
741 dnl The testsuite driver may need to know about EXEEXT, so add the
742 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
743 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
745744 AC_CONFIG_COMMANDS_PRE(dnl
746745 [m4_provide_if([_AM_COMPILER_EXEEXT],
747746 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
748747 ])
749748
750 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
749 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
751750 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
752751 dnl mangled by Autoconf and run in a shell conditional statement.
753752 m4_define([_AC_COMPILER_EXEEXT],
775774 done
776775 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
777776
778 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
779 # Inc.
780 #
781 # This file is free software; the Free Software Foundation
782 # gives unlimited permission to copy and/or distribute it,
783 # with or without modifications, as long as this notice is preserved.
784
785 # serial 1
777 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
778 #
779 # This file is free software; the Free Software Foundation
780 # gives unlimited permission to copy and/or distribute it,
781 # with or without modifications, as long as this notice is preserved.
786782
787783 # AM_PROG_INSTALL_SH
788784 # ------------------
797793 install_sh="\${SHELL} $am_aux_dir/install-sh"
798794 esac
799795 fi
800 AC_SUBST(install_sh)])
801
802 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
803 #
804 # This file is free software; the Free Software Foundation
805 # gives unlimited permission to copy and/or distribute it,
806 # with or without modifications, as long as this notice is preserved.
807
808 # serial 2
796 AC_SUBST([install_sh])])
797
798 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
799 #
800 # This file is free software; the Free Software Foundation
801 # gives unlimited permission to copy and/or distribute it,
802 # with or without modifications, as long as this notice is preserved.
809803
810804 # Check whether the underlying file-system supports filenames
811805 # with a leading dot. For instance MS-DOS doesn't.
823817 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
824818 # From Jim Meyering
825819
826 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
827 # 2011 Free Software Foundation, Inc.
828 #
829 # This file is free software; the Free Software Foundation
830 # gives unlimited permission to copy and/or distribute it,
831 # with or without modifications, as long as this notice is preserved.
832
833 # serial 5
820 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
821 #
822 # This file is free software; the Free Software Foundation
823 # gives unlimited permission to copy and/or distribute it,
824 # with or without modifications, as long as this notice is preserved.
834825
835826 # AM_MAINTAINER_MODE([DEFAULT-MODE])
836827 # ----------------------------------
837828 # Control maintainer-specific portions of Makefiles.
838 # Default is to disable them, unless `enable' is passed literally.
839 # For symmetry, `disable' may be passed as well. Anyway, the user
829 # Default is to disable them, unless 'enable' is passed literally.
830 # For symmetry, 'disable' may be passed as well. Anyway, the user
840831 # can override the default with the --enable/--disable switch.
841832 AC_DEFUN([AM_MAINTAINER_MODE],
842833 [m4_case(m4_default([$1], [disable]),
847838 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
848839 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
849840 AC_ARG_ENABLE([maintainer-mode],
850 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
851 (and sometimes confusing) to the casual installer],
852 [USE_MAINTAINER_MODE=$enableval],
853 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
841 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
842 am_maintainer_other[ make rules and dependencies not useful
843 (and sometimes confusing) to the casual installer])],
844 [USE_MAINTAINER_MODE=$enableval],
845 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
854846 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
855847 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
856848 MAINT=$MAINTAINER_MODE_TRUE
858850 ]
859851 )
860852
861 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
862
863853 # Check to see how 'make' treats includes. -*- Autoconf -*-
864854
865 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
866 #
867 # This file is free software; the Free Software Foundation
868 # gives unlimited permission to copy and/or distribute it,
869 # with or without modifications, as long as this notice is preserved.
870
871 # serial 4
855 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
856 #
857 # This file is free software; the Free Software Foundation
858 # gives unlimited permission to copy and/or distribute it,
859 # with or without modifications, as long as this notice is preserved.
872860
873861 # AM_MAKE_INCLUDE()
874862 # -----------------
887875 _am_result=none
888876 # First try GNU make style include.
889877 echo "include confinc" > confmf
890 # Ignore all kinds of additional output from `make'.
878 # Ignore all kinds of additional output from 'make'.
891879 case `$am_make -s -f confmf 2> /dev/null` in #(
892880 *the\ am__doit\ target*)
893881 am__include=include
912900 rm -f confinc confmf
913901 ])
914902
915 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
916 # Free Software Foundation, Inc.
917 #
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
921
922 # serial 6
903 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
904 #
905 # This file is free software; the Free Software Foundation
906 # gives unlimited permission to copy and/or distribute it,
907 # with or without modifications, as long as this notice is preserved.
923908
924909 # AM_PROG_CC_C_O
925910 # --------------
949934
950935 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
951936
952 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
953 # Free Software Foundation, Inc.
954 #
955 # This file is free software; the Free Software Foundation
956 # gives unlimited permission to copy and/or distribute it,
957 # with or without modifications, as long as this notice is preserved.
958
959 # serial 6
937 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
938 #
939 # This file is free software; the Free Software Foundation
940 # gives unlimited permission to copy and/or distribute it,
941 # with or without modifications, as long as this notice is preserved.
960942
961943 # AM_MISSING_PROG(NAME, PROGRAM)
962944 # ------------------------------
965947 $1=${$1-"${am_missing_run}$2"}
966948 AC_SUBST($1)])
967949
968
969950 # AM_MISSING_HAS_RUN
970951 # ------------------
971 # Define MISSING if not defined so far and test if it supports --run.
972 # If it does, set am_missing_run to use it, otherwise, to nothing.
952 # Define MISSING if not defined so far and test if it is modern enough.
953 # If it is, set am_missing_run to use it, otherwise, to nothing.
973954 AC_DEFUN([AM_MISSING_HAS_RUN],
974955 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
975956 AC_REQUIRE_AUX_FILE([missing])dnl
982963 esac
983964 fi
984965 # Use eval to expand $SHELL
985 if eval "$MISSING --run true"; then
986 am_missing_run="$MISSING --run "
966 if eval "$MISSING --is-lightweight"; then
967 am_missing_run="$MISSING "
987968 else
988969 am_missing_run=
989 AC_MSG_WARN([`missing' script is too old or missing])
990 fi
991 ])
992
993 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
994 # Inc.
995 #
996 # This file is free software; the Free Software Foundation
997 # gives unlimited permission to copy and/or distribute it,
998 # with or without modifications, as long as this notice is preserved.
999
1000 # serial 1
1001
1002 # AM_PROG_MKDIR_P
1003 # ---------------
1004 # Check for `mkdir -p'.
1005 AC_DEFUN([AM_PROG_MKDIR_P],
1006 [AC_PREREQ([2.60])dnl
1007 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1008 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1009 dnl while keeping a definition of mkdir_p for backward compatibility.
1010 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1011 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1012 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1013 dnl adjustment using top_builddir (which is defined more often than
1014 dnl MKDIR_P).
1015 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1016 case $mkdir_p in
1017 [[\\/$]]* | ?:[[\\/]]*) ;;
1018 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1019 esac
970 AC_MSG_WARN(['missing' script is too old or missing])
971 fi
1020972 ])
1021973
1022974 # Helper functions for option handling. -*- Autoconf -*-
1023975
1024 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1025 # Foundation, Inc.
1026 #
1027 # This file is free software; the Free Software Foundation
1028 # gives unlimited permission to copy and/or distribute it,
1029 # with or without modifications, as long as this notice is preserved.
1030
1031 # serial 5
976 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
977 #
978 # This file is free software; the Free Software Foundation
979 # gives unlimited permission to copy and/or distribute it,
980 # with or without modifications, as long as this notice is preserved.
1032981
1033982 # _AM_MANGLE_OPTION(NAME)
1034983 # -----------------------
1039988 # --------------------
1040989 # Set option NAME. Presently that only means defining a flag for this option.
1041990 AC_DEFUN([_AM_SET_OPTION],
1042 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
991 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1043992
1044993 # _AM_SET_OPTIONS(OPTIONS)
1045994 # ------------------------
10551004
10561005 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10571006
1058 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1059 # Free Software Foundation, Inc.
1060 #
1061 # This file is free software; the Free Software Foundation
1062 # gives unlimited permission to copy and/or distribute it,
1063 # with or without modifications, as long as this notice is preserved.
1064
1065 # serial 5
1007 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1008 #
1009 # This file is free software; the Free Software Foundation
1010 # gives unlimited permission to copy and/or distribute it,
1011 # with or without modifications, as long as this notice is preserved.
10661012
10671013 # AM_SANITY_CHECK
10681014 # ---------------
10691015 AC_DEFUN([AM_SANITY_CHECK],
10701016 [AC_MSG_CHECKING([whether build environment is sane])
1071 # Just in case
1072 sleep 1
1073 echo timestamp > conftest.file
10741017 # Reject unsafe characters in $srcdir or the absolute working directory
10751018 # name. Accept space and tab only in the latter.
10761019 am_lf='
10811024 esac
10821025 case $srcdir in
10831026 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1084 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1027 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10851028 esac
10861029
1087 # Do `set' in a subshell so we don't clobber the current shell's
1030 # Do 'set' in a subshell so we don't clobber the current shell's
10881031 # arguments. Must try -L first in case configure is actually a
10891032 # symlink; some systems play weird games with the mod time of symlinks
10901033 # (eg FreeBSD returns the mod time of the symlink's containing
10911034 # directory).
10921035 if (
1093 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1094 if test "$[*]" = "X"; then
1095 # -L didn't work.
1096 set X `ls -t "$srcdir/configure" conftest.file`
1097 fi
1098 rm -f conftest.file
1099 if test "$[*]" != "X $srcdir/configure conftest.file" \
1100 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1101
1102 # If neither matched, then we have a broken ls. This can happen
1103 # if, for instance, CONFIG_SHELL is bash and it inherits a
1104 # broken ls alias from the environment. This has actually
1105 # happened. Such a system could not be considered "sane".
1106 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1107 alias in your environment])
1108 fi
1109
1036 am_has_slept=no
1037 for am_try in 1 2; do
1038 echo "timestamp, slept: $am_has_slept" > conftest.file
1039 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1040 if test "$[*]" = "X"; then
1041 # -L didn't work.
1042 set X `ls -t "$srcdir/configure" conftest.file`
1043 fi
1044 if test "$[*]" != "X $srcdir/configure conftest.file" \
1045 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1046
1047 # If neither matched, then we have a broken ls. This can happen
1048 # if, for instance, CONFIG_SHELL is bash and it inherits a
1049 # broken ls alias from the environment. This has actually
1050 # happened. Such a system could not be considered "sane".
1051 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1052 alias in your environment])
1053 fi
1054 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1055 break
1056 fi
1057 # Just in case.
1058 sleep 1
1059 am_has_slept=yes
1060 done
11101061 test "$[2]" = conftest.file
11111062 )
11121063 then
11161067 AC_MSG_ERROR([newly created file is older than distributed files!
11171068 Check your system clock])
11181069 fi
1119 AC_MSG_RESULT(yes)])
1120
1121 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1122 #
1123 # This file is free software; the Free Software Foundation
1124 # gives unlimited permission to copy and/or distribute it,
1125 # with or without modifications, as long as this notice is preserved.
1126
1127 # serial 2
1070 AC_MSG_RESULT([yes])
1071 # If we didn't sleep, we still need to ensure time stamps of config.status and
1072 # generated files are strictly newer.
1073 am_sleep_pid=
1074 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1075 ( sleep 1 ) &
1076 am_sleep_pid=$!
1077 fi
1078 AC_CONFIG_COMMANDS_PRE(
1079 [AC_MSG_CHECKING([that generated files are newer than configure])
1080 if test -n "$am_sleep_pid"; then
1081 # Hide warnings about reused PIDs.
1082 wait $am_sleep_pid 2>/dev/null
1083 fi
1084 AC_MSG_RESULT([done])])
1085 rm -f conftest.file
1086 ])
1087
1088 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1089 #
1090 # This file is free software; the Free Software Foundation
1091 # gives unlimited permission to copy and/or distribute it,
1092 # with or without modifications, as long as this notice is preserved.
11281093
11291094 # AM_SILENT_RULES([DEFAULT])
11301095 # --------------------------
11311096 # Enable less verbose build rules; with the default set to DEFAULT
1132 # (`yes' being less verbose, `no' or empty being verbose).
1097 # ("yes" being less verbose, "no" or empty being verbose).
11331098 AC_DEFUN([AM_SILENT_RULES],
1134 [AC_ARG_ENABLE([silent-rules],
1135 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1136 --disable-silent-rules verbose build output (undo: `make V=0')])
1137 case $enable_silent_rules in
1138 yes) AM_DEFAULT_VERBOSITY=0;;
1139 no) AM_DEFAULT_VERBOSITY=1;;
1140 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1099 [AC_ARG_ENABLE([silent-rules], [dnl
1100 AS_HELP_STRING(
1101 [--enable-silent-rules],
1102 [less verbose build output (undo: "make V=1")])
1103 AS_HELP_STRING(
1104 [--disable-silent-rules],
1105 [verbose build output (undo: "make V=0")])dnl
1106 ])
1107 case $enable_silent_rules in @%:@ (((
1108 yes) AM_DEFAULT_VERBOSITY=0;;
1109 no) AM_DEFAULT_VERBOSITY=1;;
1110 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
11411111 esac
11421112 dnl
1143 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1113 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
11441114 dnl do not support nested variable expansions.
11451115 dnl See automake bug#9928 and bug#10237.
11461116 am_make=${MAKE-make}
11581128 am_cv_make_support_nested_variables=no
11591129 fi])
11601130 if test $am_cv_make_support_nested_variables = yes; then
1161 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1131 dnl Using '$V' instead of '$(V)' breaks IRIX make.
11621132 AM_V='$(V)'
11631133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11641134 else
11751145 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11761146 ])
11771147
1178 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1179 #
1180 # This file is free software; the Free Software Foundation
1181 # gives unlimited permission to copy and/or distribute it,
1182 # with or without modifications, as long as this notice is preserved.
1183
1184 # serial 1
1148 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1149 #
1150 # This file is free software; the Free Software Foundation
1151 # gives unlimited permission to copy and/or distribute it,
1152 # with or without modifications, as long as this notice is preserved.
11851153
11861154 # AM_PROG_INSTALL_STRIP
11871155 # ---------------------
1188 # One issue with vendor `install' (even GNU) is that you can't
1156 # One issue with vendor 'install' (even GNU) is that you can't
11891157 # specify the program used to strip binaries. This is especially
11901158 # annoying in cross-compiling environments, where the build's strip
11911159 # is unlikely to handle the host's binaries.
11921160 # Fortunately install-sh will honor a STRIPPROG variable, so we
1193 # always use install-sh in `make install-strip', and initialize
1161 # always use install-sh in "make install-strip", and initialize
11941162 # STRIPPROG with the value of the STRIP variable (set by the user).
11951163 AC_DEFUN([AM_PROG_INSTALL_STRIP],
11961164 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1197 # Installed binaries are usually stripped using `strip' when the user
1198 # run `make install-strip'. However `strip' might not be the right
1165 # Installed binaries are usually stripped using 'strip' when the user
1166 # run "make install-strip". However 'strip' might not be the right
11991167 # tool to use in cross-compilation environments, therefore Automake
1200 # will honor the `STRIP' environment variable to overrule this program.
1201 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1168 # will honor the 'STRIP' environment variable to overrule this program.
1169 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
12021170 if test "$cross_compiling" != no; then
12031171 AC_CHECK_TOOL([STRIP], [strip], :)
12041172 fi
12051173 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12061174 AC_SUBST([INSTALL_STRIP_PROGRAM])])
12071175
1208 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1209 #
1210 # This file is free software; the Free Software Foundation
1211 # gives unlimited permission to copy and/or distribute it,
1212 # with or without modifications, as long as this notice is preserved.
1213
1214 # serial 3
1176 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1177 #
1178 # This file is free software; the Free Software Foundation
1179 # gives unlimited permission to copy and/or distribute it,
1180 # with or without modifications, as long as this notice is preserved.
12151181
12161182 # _AM_SUBST_NOTMAKE(VARIABLE)
12171183 # ---------------------------
12261192
12271193 # Check how to create a tarball. -*- Autoconf -*-
12281194
1229 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1230 #
1231 # This file is free software; the Free Software Foundation
1232 # gives unlimited permission to copy and/or distribute it,
1233 # with or without modifications, as long as this notice is preserved.
1234
1235 # serial 2
1195 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1196 #
1197 # This file is free software; the Free Software Foundation
1198 # gives unlimited permission to copy and/or distribute it,
1199 # with or without modifications, as long as this notice is preserved.
12361200
12371201 # _AM_PROG_TAR(FORMAT)
12381202 # --------------------
12391203 # Check how to create a tarball in format FORMAT.
1240 # FORMAT should be one of `v7', `ustar', or `pax'.
1204 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
12411205 #
12421206 # Substitute a variable $(am__tar) that is a command
12431207 # writing to stdout a FORMAT-tarball containing the directory
12471211 # Substitute a variable $(am__untar) that extract such
12481212 # a tarball read from stdin.
12491213 # $(am__untar) < result.tar
1214 #
12501215 AC_DEFUN([_AM_PROG_TAR],
12511216 [# Always define AMTAR for backward compatibility. Yes, it's still used
12521217 # in the wild :-( We should find a proper way to deprecate it ...
12531218 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1219
1220 # We'll loop over all known methods to create a tar archive until one works.
1221 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1222
12541223 m4_if([$1], [v7],
1255 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1256 [m4_case([$1], [ustar],, [pax],,
1257 [m4_fatal([Unknown tar format])])
1258 AC_MSG_CHECKING([how to create a $1 tar archive])
1259 # Loop over all known methods to create a tar archive until one works.
1260 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1261 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1262 # Do not fold the above two line into one, because Tru64 sh and
1263 # Solaris sh will not grok spaces in the rhs of `-'.
1264 for _am_tool in $_am_tools
1265 do
1266 case $_am_tool in
1267 gnutar)
1268 for _am_tar in tar gnutar gtar;
1269 do
1270 AM_RUN_LOG([$_am_tar --version]) && break
1271 done
1272 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1273 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1274 am__untar="$_am_tar -xf -"
1275 ;;
1276 plaintar)
1277 # Must skip GNU tar: if it does not support --format= it doesn't create
1278 # ustar tarball either.
1279 (tar --version) >/dev/null 2>&1 && continue
1280 am__tar='tar chf - "$$tardir"'
1281 am__tar_='tar chf - "$tardir"'
1282 am__untar='tar xf -'
1283 ;;
1284 pax)
1285 am__tar='pax -L -x $1 -w "$$tardir"'
1286 am__tar_='pax -L -x $1 -w "$tardir"'
1287 am__untar='pax -r'
1288 ;;
1289 cpio)
1290 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1291 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1292 am__untar='cpio -i -H $1 -d'
1293 ;;
1294 none)
1295 am__tar=false
1296 am__tar_=false
1297 am__untar=false
1298 ;;
1299 esac
1300
1301 # If the value was cached, stop now. We just wanted to have am__tar
1302 # and am__untar set.
1303 test -n "${am_cv_prog_tar_$1}" && break
1304
1305 # tar/untar a dummy directory, and stop if the command works
1224 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1225
1226 [m4_case([$1],
1227 [ustar],
1228 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1229 # There is notably a 21 bits limit for the UID and the GID. In fact,
1230 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1231 # and bug#13588).
1232 am_max_uid=2097151 # 2^21 - 1
1233 am_max_gid=$am_max_uid
1234 # The $UID and $GID variables are not portable, so we need to resort
1235 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1236 # below are definitely unexpected, so allow the users to see them
1237 # (that is, avoid stderr redirection).
1238 am_uid=`id -u || echo unknown`
1239 am_gid=`id -g || echo unknown`
1240 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1241 if test $am_uid -le $am_max_uid; then
1242 AC_MSG_RESULT([yes])
1243 else
1244 AC_MSG_RESULT([no])
1245 _am_tools=none
1246 fi
1247 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1248 if test $am_gid -le $am_max_gid; then
1249 AC_MSG_RESULT([yes])
1250 else
1251 AC_MSG_RESULT([no])
1252 _am_tools=none
1253 fi],
1254
1255 [pax],
1256 [],
1257
1258 [m4_fatal([Unknown tar format])])
1259
1260 AC_MSG_CHECKING([how to create a $1 tar archive])
1261
1262 # Go ahead even if we have the value already cached. We do so because we
1263 # need to set the values for the 'am__tar' and 'am__untar' variables.
1264 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1265
1266 for _am_tool in $_am_tools; do
1267 case $_am_tool in
1268 gnutar)
1269 for _am_tar in tar gnutar gtar; do
1270 AM_RUN_LOG([$_am_tar --version]) && break
1271 done
1272 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1273 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1274 am__untar="$_am_tar -xf -"
1275 ;;
1276 plaintar)
1277 # Must skip GNU tar: if it does not support --format= it doesn't create
1278 # ustar tarball either.
1279 (tar --version) >/dev/null 2>&1 && continue
1280 am__tar='tar chf - "$$tardir"'
1281 am__tar_='tar chf - "$tardir"'
1282 am__untar='tar xf -'
1283 ;;
1284 pax)
1285 am__tar='pax -L -x $1 -w "$$tardir"'
1286 am__tar_='pax -L -x $1 -w "$tardir"'
1287 am__untar='pax -r'
1288 ;;
1289 cpio)
1290 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1291 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1292 am__untar='cpio -i -H $1 -d'
1293 ;;
1294 none)
1295 am__tar=false
1296 am__tar_=false
1297 am__untar=false
1298 ;;
1299 esac
1300
1301 # If the value was cached, stop now. We just wanted to have am__tar
1302 # and am__untar set.
1303 test -n "${am_cv_prog_tar_$1}" && break
1304
1305 # tar/untar a dummy directory, and stop if the command works.
1306 rm -rf conftest.dir
1307 mkdir conftest.dir
1308 echo GrepMe > conftest.dir/file
1309 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1310 rm -rf conftest.dir
1311 if test -s conftest.tar; then
1312 AM_RUN_LOG([$am__untar <conftest.tar])
1313 AM_RUN_LOG([cat conftest.dir/file])
1314 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1315 fi
1316 done
13061317 rm -rf conftest.dir
1307 mkdir conftest.dir
1308 echo GrepMe > conftest.dir/file
1309 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1310 rm -rf conftest.dir
1311 if test -s conftest.tar; then
1312 AM_RUN_LOG([$am__untar <conftest.tar])
1313 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1314 fi
1315 done
1316 rm -rf conftest.dir
1317
1318 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1319 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1318
1319 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1320 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1321
13201322 AC_SUBST([am__tar])
13211323 AC_SUBST([am__untar])
13221324 ]) # _AM_PROG_TAR
33 me=ar-lib
44 scriptversion=2012-03-01.08; # UTC
55
6 # Copyright (C) 2010, 2012 Free Software Foundation, Inc.
6 # Copyright (C) 2010-2013 Free Software Foundation, Inc.
77 # Written by Peter Rosin <peda@lysator.liu.se>.
88 #
99 # This program is free software; you can redistribute it and/or modify
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-03-05.13; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
6 # Software Foundation, Inc.
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76 # Written by Tom Tromey <tromey@cygnus.com>.
87 #
98 # This program is free software; you can redistribute it and/or modify
112111 lib=$dir/$lib.lib
113112 break
114113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
115119 done
116120 IFS=$save_IFS
117121
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-05-16'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
2119 # As a special exception to the GNU General Public License, if you
2220 # distribute this file as part of a program that contains a
2321 # 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
27 # Originally written by Per Bothner. Please send patches (context
28 # diff format) to <config-patches@gnu.org> and include a ChangeLog
29 # entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3025 #
31 # This script attempts to guess a canonical system name similar to
32 # config.sub. If it succeeds, it prints the system name on stdout, and
33 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner.
3427 #
3528 # You can get the latest version of this script from:
3629 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32
3733
3834 me=`echo "$0" | sed -e 's,.*/,,'`
3935
5349 GNU config.guess ($timestamp)
5450
5551 Originally written by Per Bothner.
56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
57 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
58 Free Software Foundation, Inc.
52 Copyright 1992-2013 Free Software Foundation, Inc.
5953
6054 This is free software; see the source for copying conditions. There is NO
6155 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
136130 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
137131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
138132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
152 ;;
153 esac
139154
140155 # Note: order is significant - the case branches are not exclusive.
141156
198213 # contains redundant information, the shorter form:
199214 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200215 echo "${machine}-${os}${release}"
216 exit ;;
217 *:Bitrig:*:*)
218 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
201220 exit ;;
202221 *:OpenBSD:*:*)
203222 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
301320 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
302321 echo arm-acorn-riscix${UNAME_RELEASE}
303322 exit ;;
304 arm:riscos:*:*|arm:RISCOS:*:*)
323 arm*:riscos:*:*|arm*:RISCOS:*:*)
305324 echo arm-unknown-riscos
306325 exit ;;
307326 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
800819 i*:CYGWIN*:*)
801820 echo ${UNAME_MACHINE}-pc-cygwin
802821 exit ;;
822 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
824 exit ;;
803825 *:MINGW*:*)
804826 echo ${UNAME_MACHINE}-pc-mingw32
805827 exit ;;
851873 exit ;;
852874 *:GNU:*:*)
853875 # the GNU system
854 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
855877 exit ;;
856878 *:GNU/*:*:*)
857879 # other systems with GNU libc and userland
858 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
859881 exit ;;
860882 i*86:Minix:*:*)
861883 echo ${UNAME_MACHINE}-pc-minix
862884 exit ;;
863885 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
865887 exit ;;
866888 aarch64_be:Linux:*:*)
867889 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
869891 exit ;;
870892 alpha:Linux:*:*)
871893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
878900 EV68*) UNAME_MACHINE=alphaev68 ;;
879901 esac
880902 objdump --private-headers /bin/sh | grep -q ld.so.1
881 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
882 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905 exit ;;
906 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
883908 exit ;;
884909 arm*:Linux:*:*)
885910 eval $set_cc_for_build
886911 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
887912 | grep -q __ARM_EABI__
888913 then
889 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
890915 else
891916 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
892917 | grep -q __ARM_PCS_VFP
893918 then
894 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
895920 else
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
897922 fi
898923 fi
899924 exit ;;
900925 avr32*:Linux:*:*)
901 echo ${UNAME_MACHINE}-unknown-linux-gnu
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
902927 exit ;;
903928 cris:Linux:*:*)
904 echo ${UNAME_MACHINE}-axis-linux-gnu
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
905930 exit ;;
906931 crisv32:Linux:*:*)
907 echo ${UNAME_MACHINE}-axis-linux-gnu
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
908933 exit ;;
909934 frv:Linux:*:*)
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
911936 exit ;;
912937 hexagon:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
914939 exit ;;
915940 i*86:Linux:*:*)
916 LIBC=gnu
917 eval $set_cc_for_build
918 sed 's/^ //' << EOF >$dummy.c
919 #ifdef __dietlibc__
920 LIBC=dietlibc
921 #endif
922 EOF
923 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
924 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
925942 exit ;;
926943 ia64:Linux:*:*)
927 echo ${UNAME_MACHINE}-unknown-linux-gnu
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928945 exit ;;
929946 m32r*:Linux:*:*)
930 echo ${UNAME_MACHINE}-unknown-linux-gnu
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
931948 exit ;;
932949 m68*:Linux:*:*)
933 echo ${UNAME_MACHINE}-unknown-linux-gnu
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
934951 exit ;;
935952 mips:Linux:*:* | mips64:Linux:*:*)
936953 eval $set_cc_for_build
949966 #endif
950967 EOF
951968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
952 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
953970 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
954974 or32:Linux:*:*)
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
956976 exit ;;
957977 padre:Linux:*:*)
958 echo sparc-unknown-linux-gnu
978 echo sparc-unknown-linux-${LIBC}
959979 exit ;;
960980 parisc64:Linux:*:* | hppa64:Linux:*:*)
961 echo hppa64-unknown-linux-gnu
981 echo hppa64-unknown-linux-${LIBC}
962982 exit ;;
963983 parisc:Linux:*:* | hppa:Linux:*:*)
964984 # Look for CPU level
965985 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
966 PA7*) echo hppa1.1-unknown-linux-gnu ;;
967 PA8*) echo hppa2.0-unknown-linux-gnu ;;
968 *) echo hppa-unknown-linux-gnu ;;
986 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
987 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
988 *) echo hppa-unknown-linux-${LIBC} ;;
969989 esac
970990 exit ;;
971991 ppc64:Linux:*:*)
972 echo powerpc64-unknown-linux-gnu
992 echo powerpc64-unknown-linux-${LIBC}
973993 exit ;;
974994 ppc:Linux:*:*)
975 echo powerpc-unknown-linux-gnu
995 echo powerpc-unknown-linux-${LIBC}
976996 exit ;;
977997 s390:Linux:*:* | s390x:Linux:*:*)
978 echo ${UNAME_MACHINE}-ibm-linux
998 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
979999 exit ;;
9801000 sh64*:Linux:*:*)
981 echo ${UNAME_MACHINE}-unknown-linux-gnu
1001 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9821002 exit ;;
9831003 sh*:Linux:*:*)
984 echo ${UNAME_MACHINE}-unknown-linux-gnu
1004 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9851005 exit ;;
9861006 sparc:Linux:*:* | sparc64:Linux:*:*)
987 echo ${UNAME_MACHINE}-unknown-linux-gnu
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9881008 exit ;;
9891009 tile*:Linux:*:*)
990 echo ${UNAME_MACHINE}-unknown-linux-gnu
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9911011 exit ;;
9921012 vax:Linux:*:*)
993 echo ${UNAME_MACHINE}-dec-linux-gnu
1013 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
9941014 exit ;;
9951015 x86_64:Linux:*:*)
996 echo ${UNAME_MACHINE}-unknown-linux-gnu
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9971017 exit ;;
9981018 xtensa*:Linux:*:*)
999 echo ${UNAME_MACHINE}-unknown-linux-gnu
1019 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
10001020 exit ;;
10011021 i*86:DYNIX/ptx:4*:*)
10021022 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
12001220 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12011221 echo i586-pc-haiku
12021222 exit ;;
1223 x86_64:Haiku:*:*)
1224 echo x86_64-unknown-haiku
1225 exit ;;
12031226 SX-4:SUPER-UX:*:*)
12041227 echo sx4-nec-superux${UNAME_RELEASE}
12051228 exit ;;
12261249 exit ;;
12271250 *:Darwin:*:*)
12281251 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1229 case $UNAME_PROCESSOR in
1230 i386)
1231 eval $set_cc_for_build
1232 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1233 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1234 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1235 grep IS_64BIT_ARCH >/dev/null
1236 then
1237 UNAME_PROCESSOR="x86_64"
1238 fi
1239 fi ;;
1240 unknown) UNAME_PROCESSOR=powerpc ;;
1241 esac
1252 eval $set_cc_for_build
1253 if test "$UNAME_PROCESSOR" = unknown ; then
1254 UNAME_PROCESSOR=powerpc
1255 fi
1256 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1257 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1258 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1259 grep IS_64BIT_ARCH >/dev/null
1260 then
1261 case $UNAME_PROCESSOR in
1262 i386) UNAME_PROCESSOR=x86_64 ;;
1263 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1264 esac
1265 fi
1266 fi
12421267 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12431268 exit ;;
12441269 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12551280 NEO-?:NONSTOP_KERNEL:*:*)
12561281 echo neo-tandem-nsk${UNAME_RELEASE}
12571282 exit ;;
1258 NSE-?:NONSTOP_KERNEL:*:*)
1283 NSE-*:NONSTOP_KERNEL:*:*)
12591284 echo nse-tandem-nsk${UNAME_RELEASE}
12601285 exit ;;
12611286 NSR-?:NONSTOP_KERNEL:*:*)
13281353 echo ${UNAME_MACHINE}-unknown-esx
13291354 exit ;;
13301355 esac
1331
1332 #echo '(No uname command or uname output not recognized.)' 1>&2
1333 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13341356
13351357 eval $set_cc_for_build
13361358 cat >$dummy.c <<EOF
3737
3838 /* Define to 1 if you have the <inttypes.h> header file. */
3939 #undef HAVE_INTTYPES_H
40
41 /* Define if libbsd is used */
42 #undef HAVE_LIBBSD
4043
4144 /* Define if you have a readline compatible library */
4245 #undef HAVE_LIBREADLINE
8689 /* Define to indicate that res_init() exists */
8790 #undef HAVE_RES_INIT
8891
92 /* Define to 1 if you have the `setproctitle' function. */
93 #undef HAVE_SETPROCTITLE
94
8995 /* Define to 1 if you have the `setresgid' function. */
9096 #undef HAVE_SETRESGID
9197
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-04-18'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-04-24'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
2317 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2519 # As a special exception to the GNU General Public License, if you
2620 # distribute this file as part of a program that contains a
2721 # configuration script generated by Autoconf, you may include it under
28 # the same distribution terms that you use for the rest of that program.
29
30
31 # Please send patches to <config-patches@gnu.org>. Submit a context
32 # diff and a properly formatted GNU ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3328 #
3429 # Configuration subroutine to validate and canonicalize a configuration type.
3530 # Supply the specified configuration type as an argument.
7267 version="\
7368 GNU config.sub ($timestamp)
7469
75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
76 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
77 Free Software Foundation, Inc.
70 Copyright 1992-2013 Free Software Foundation, Inc.
7871
7972 This is free software; see the source for copying conditions. There is NO
8073 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
123116 case $maybe_os in
124117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
125 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
126119 knetbsd*-gnu* | netbsd*-gnu* | \
127120 kopensolaris*-gnu* | \
128121 storm-chaos* | os2-emx* | rtmk-nova*)
155148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
156149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
157150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
158 -apple | -axis | -knuth | -cray | -microblaze)
151 -apple | -axis | -knuth | -cray | -microblaze*)
159152 os=
160153 basic_machine=$1
161154 ;;
258251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
259252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
260253 | am33_2.0 \
261 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
262 | be32 | be64 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
263258 | bfin \
264259 | c4x | clipper \
265260 | d10v | d30v | dlx | dsp16xx \
272267 | le32 | le64 \
273268 | lm32 \
274269 | m32c | m32r | m32rle | m68000 | m68k | m88k \
275 | maxq | mb | microblaze | mcore | mep | metag \
270 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
276271 | mips | mipsbe | mipseb | mipsel | mipsle \
277272 | mips16 \
278273 | mips64 | mips64el \
290285 | mipsisa64r2 | mipsisa64r2el \
291286 | mipsisa64sb1 | mipsisa64sb1el \
292287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
293289 | mipstx39 | mipstx39el \
294290 | mn10200 | mn10300 \
295291 | moxie \
296292 | mt \
297293 | msp430 \
298294 | nds32 | nds32le | nds32be \
299 | nios | nios2 \
295 | nios | nios2 | nios2eb | nios2el \
300296 | ns16k | ns32k \
301297 | open8 \
302 | or32 \
298 | or1k | or32 \
303299 | pdp10 | pdp11 | pj | pjl \
304300 | powerpc | powerpc64 | powerpc64le | powerpcle \
305301 | pyramid \
369365 | aarch64-* | aarch64_be-* \
370366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
371367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
372 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
373369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
374370 | avr-* | avr32-* \
375371 | be32-* | be64-* \
388384 | lm32-* \
389385 | m32c-* | m32r-* | m32rle-* \
390386 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
391 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
387 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
388 | microblaze-* | microblazeel-* \
392389 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
393390 | mips16-* \
394391 | mips64-* | mips64el-* \
406403 | mipsisa64r2-* | mipsisa64r2el-* \
407404 | mipsisa64sb1-* | mipsisa64sb1el-* \
408405 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406 | mipsr5900-* | mipsr5900el-* \
409407 | mipstx39-* | mipstx39el-* \
410408 | mmix-* \
411409 | mt-* \
412410 | msp430-* \
413411 | nds32-* | nds32le-* | nds32be-* \
414 | nios-* | nios2-* \
412 | nios-* | nios2-* | nios2eb-* | nios2el-* \
415413 | none-* | np1-* | ns16k-* | ns32k-* \
416414 | open8-* \
417415 | orion-* \
787785 basic_machine=ns32k-utek
788786 os=-sysv
789787 ;;
790 microblaze)
788 microblaze*)
791789 basic_machine=microblaze-xilinx
790 ;;
791 mingw64)
792 basic_machine=x86_64-pc
793 os=-mingw64
792794 ;;
793795 mingw32)
794796 basic_machine=i386-pc
10181020 basic_machine=i586-unknown
10191021 os=-pw32
10201022 ;;
1021 rdos)
1023 rdos | rdos64)
1024 basic_machine=x86_64-pc
1025 os=-rdos
1026 ;;
1027 rdos32)
10221028 basic_machine=i386-pc
10231029 os=-rdos
10241030 ;;
13451351 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13461352 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13471353 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1348 | -sym* | -kopensolaris* \
1354 | -sym* | -kopensolaris* | -plan9* \
13491355 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13501356 | -aos* | -aros* \
13511357 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13521358 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13531359 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1354 | -openbsd* | -solidbsd* \
1360 | -bitrig* | -openbsd* | -solidbsd* \
13551361 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13561362 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13571363 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13581364 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13591365 | -chorusos* | -chorusrdb* | -cegcc* \
13601366 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1361 | -mingw32* | -linux-gnu* | -linux-android* \
1362 | -linux-newlib* | -linux-uclibc* \
1367 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13631369 | -uxpv* | -beos* | -mpeix* | -udk* \
13641370 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13651371 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
14911497 -aros*)
14921498 os=-aros
14931499 ;;
1494 -kaos*)
1495 os=-kaos
1496 ;;
14971500 -zvmoe)
14981501 os=-zvmoe
14991502 ;;
15831586 os=-elf
15841587 ;;
15851588 mips*-*)
1589 os=-elf
1590 ;;
1591 or1k-*)
15861592 os=-elf
15871593 ;;
15881594 or32-*)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for lldpd 0.7.3.
2 # Generated by GNU Autoconf 2.69 for lldpd 0.7.4.
33 #
44 # Report bugs to <bernat@luffy.cx>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='lldpd'
591591 PACKAGE_TARNAME='lldpd'
592 PACKAGE_VERSION='0.7.3'
593 PACKAGE_STRING='lldpd 0.7.3'
592 PACKAGE_VERSION='0.7.4'
593 PACKAGE_STRING='lldpd 0.7.4'
594594 PACKAGE_BUGREPORT='bernat@luffy.cx'
595595 PACKAGE_URL=''
596596
779779 CC
780780 ac_ct_AR
781781 AR
782 MAINT
783 MAINTAINER_MODE_FALSE
784 MAINTAINER_MODE_TRUE
782785 AM_BACKSLASH
783786 AM_DEFAULT_VERBOSITY
784787 AM_DEFAULT_V
785788 AM_V
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789789 am__untar
790790 am__tar
791791 AMTAR
850850 ac_subst_files=''
851851 ac_user_opts='
852852 enable_option_checking
853 enable_silent_rules
853854 enable_maintainer_mode
854 enable_silent_rules
855855 enable_dependency_tracking
856856 enable_shared
857857 enable_static
14511451 # Omit some internal or obsolete options to make the list less imposing.
14521452 # This message is too long to be a string in the A/UX 3.1 sh.
14531453 cat <<_ACEOF
1454 \`configure' configures lldpd 0.7.3 to adapt to many kinds of systems.
1454 \`configure' configures lldpd 0.7.4 to adapt to many kinds of systems.
14551455
14561456 Usage: $0 [OPTION]... [VAR=VALUE]...
14571457
15211521
15221522 if test -n "$ac_init_help"; then
15231523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of lldpd 0.7.3:";;
1524 short | recursive ) echo "Configuration of lldpd 0.7.4:";;
15251525 esac
15261526 cat <<\_ACEOF
15271527
15291529 --disable-option-checking ignore unrecognized --enable/--with options
15301530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
15311531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-silent-rules less verbose build output (undo: `make V=1')
1535 --disable-silent-rules verbose build output (undo: `make V=0')
1536 --disable-dependency-tracking speeds up one-time build
1537 --enable-dependency-tracking do not reject slow dependency extractors
1532 --enable-silent-rules less verbose build output (undo: "make V=1")
1533 --disable-silent-rules verbose build output (undo: "make V=0")
1534 --enable-maintainer-mode
1535 enable make rules and dependencies not useful (and
1536 sometimes confusing) to the casual installer
1537 --enable-dependency-tracking
1538 do not reject slow dependency extractors
1539 --disable-dependency-tracking
1540 speeds up one-time build
15381541 --enable-shared[=PKGS] build shared libraries [default=yes]
15391542 --enable-static[=PKGS] build static libraries [default=yes]
15401543 --enable-fast-install[=PKGS]
16811684 test -n "$ac_init_help" && exit $ac_status
16821685 if $ac_init_version; then
16831686 cat <<\_ACEOF
1684 lldpd configure 0.7.3
1687 lldpd configure 0.7.4
16851688 generated by GNU Autoconf 2.69
16861689
16871690 Copyright (C) 2012 Free Software Foundation, Inc.
22822285 This file contains any messages produced by compilers while
22832286 running configure, to aid debugging if configure makes a mistake.
22842287
2285 It was created by lldpd $as_me 0.7.3, which was
2288 It was created by lldpd $as_me 0.7.4, which was
22862289 generated by GNU Autoconf 2.69. Invocation command line was
22872290
22882291 $ $0 $@
26392642
26402643
26412644 # Configure automake
2642 am__api_version='1.11'
2645 am__api_version='1.13'
26432646
26442647 ac_aux_dir=
26452648 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27652768
27662769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
27672770 $as_echo_n "checking whether build environment is sane... " >&6; }
2768 # Just in case
2769 sleep 1
2770 echo timestamp > conftest.file
27712771 # Reject unsafe characters in $srcdir or the absolute working directory
27722772 # name. Accept space and tab only in the latter.
27732773 am_lf='
27782778 esac
27792779 case $srcdir in
27802780 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2781 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2781 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
27822782 esac
27832783
2784 # Do `set' in a subshell so we don't clobber the current shell's
2784 # Do 'set' in a subshell so we don't clobber the current shell's
27852785 # arguments. Must try -L first in case configure is actually a
27862786 # symlink; some systems play weird games with the mod time of symlinks
27872787 # (eg FreeBSD returns the mod time of the symlink's containing
27882788 # directory).
27892789 if (
2790 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2791 if test "$*" = "X"; then
2792 # -L didn't work.
2793 set X `ls -t "$srcdir/configure" conftest.file`
2794 fi
2795 rm -f conftest.file
2796 if test "$*" != "X $srcdir/configure conftest.file" \
2797 && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799 # If neither matched, then we have a broken ls. This can happen
2800 # if, for instance, CONFIG_SHELL is bash and it inherits a
2801 # broken ls alias from the environment. This has actually
2802 # happened. Such a system could not be considered "sane".
2803 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2804 alias in your environment" "$LINENO" 5
2805 fi
2806
2790 am_has_slept=no
2791 for am_try in 1 2; do
2792 echo "timestamp, slept: $am_has_slept" > conftest.file
2793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2794 if test "$*" = "X"; then
2795 # -L didn't work.
2796 set X `ls -t "$srcdir/configure" conftest.file`
2797 fi
2798 if test "$*" != "X $srcdir/configure conftest.file" \
2799 && test "$*" != "X conftest.file $srcdir/configure"; then
2800
2801 # If neither matched, then we have a broken ls. This can happen
2802 # if, for instance, CONFIG_SHELL is bash and it inherits a
2803 # broken ls alias from the environment. This has actually
2804 # happened. Such a system could not be considered "sane".
2805 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2806 alias in your environment" "$LINENO" 5
2807 fi
2808 if test "$2" = conftest.file || test $am_try -eq 2; then
2809 break
2810 fi
2811 # Just in case.
2812 sleep 1
2813 am_has_slept=yes
2814 done
28072815 test "$2" = conftest.file
28082816 )
28092817 then
28152823 fi
28162824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28172825 $as_echo "yes" >&6; }
2826 # If we didn't sleep, we still need to ensure time stamps of config.status and
2827 # generated files are strictly newer.
2828 am_sleep_pid=
2829 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2830 ( sleep 1 ) &
2831 am_sleep_pid=$!
2832 fi
2833
2834 rm -f conftest.file
2835
28182836 test "$program_prefix" != NONE &&
28192837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
28202838 # Use a double $ so make ignores it.
28372855 esac
28382856 fi
28392857 # Use eval to expand $SHELL
2840 if eval "$MISSING --run true"; then
2841 am_missing_run="$MISSING --run "
2858 if eval "$MISSING --is-lightweight"; then
2859 am_missing_run="$MISSING "
28422860 else
28432861 am_missing_run=
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2845 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2863 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
28462864 fi
28472865
28482866 if test x"${install_sh}" != xset; then
28542872 esac
28552873 fi
28562874
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'. However `strip' might not be the right
2875 # Installed binaries are usually stripped using 'strip' when the user
2876 # run "make install-strip". However 'strip' might not be the right
28592877 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2878 # will honor the 'STRIP' environment variable to overrule this program.
28612879 if test "$cross_compiling" != no; then
28622880 if test -n "$ac_tool_prefix"; then
28632881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29963014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
29973015 $as_echo "$MKDIR_P" >&6; }
29983016
2999 mkdir_p="$MKDIR_P"
3000 case $mkdir_p in
3001 [\\/$]* | ?:[\\/]*) ;;
3002 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3003 esac
3004
30053017 for ac_prog in gawk mawk nawk awk
30063018 do
30073019 # Extract the first word of "$ac_prog", so it can be a program name with args.
30843096 fi
30853097 rmdir .tst 2>/dev/null
30863098
3099 # Check whether --enable-silent-rules was given.
3100 if test "${enable_silent_rules+set}" = set; then :
3101 enableval=$enable_silent_rules;
3102 fi
3103
3104 case $enable_silent_rules in # (((
3105 yes) AM_DEFAULT_VERBOSITY=0;;
3106 no) AM_DEFAULT_VERBOSITY=1;;
3107 *) AM_DEFAULT_VERBOSITY=1;;
3108 esac
3109 am_make=${MAKE-make}
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3111 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3112 if ${am_cv_make_support_nested_variables+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if $as_echo 'TRUE=$(BAR$(V))
3116 BAR0=false
3117 BAR1=true
3118 V=1
3119 am__doit:
3120 @$(TRUE)
3121 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3122 am_cv_make_support_nested_variables=yes
3123 else
3124 am_cv_make_support_nested_variables=no
3125 fi
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3128 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3129 if test $am_cv_make_support_nested_variables = yes; then
3130 AM_V='$(V)'
3131 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3132 else
3133 AM_V=$AM_DEFAULT_VERBOSITY
3134 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3135 fi
3136 AM_BACKSLASH='\'
3137
30873138 if test "`cd $srcdir && pwd`" != "`pwd`"; then
30883139 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
30893140 # is not polluted with repeated "-I."
31063157
31073158 # Define the identity of the package.
31083159 PACKAGE='lldpd'
3109 VERSION='0.7.3'
3160 VERSION='0.7.4'
31103161
31113162
31123163 cat >>confdefs.h <<_ACEOF
31333184
31343185
31353186 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3187
3188 # For better backward compatibility. To be removed once Automake 1.9.x
3189 # dies out for good. For more background, see:
3190 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3191 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3192 mkdir_p='$(MKDIR_P)'
31363193
31373194 # We need awk for the "check" target. The system "awk" is bad on
31383195 # some platforms.
31403197 # in the wild :-( We should find a proper way to deprecate it ...
31413198 AMTAR='$${TAR-tar}'
31423199
3200
3201 # We'll loop over all known methods to create a tar archive until one works.
3202 _am_tools='gnutar pax cpio none'
3203
31433204 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3205
31443206
31453207
31463208
31743236 enableval=$enable_silent_rules;
31753237 fi
31763238
3177 case $enable_silent_rules in
3178 yes) AM_DEFAULT_VERBOSITY=0;;
3179 no) AM_DEFAULT_VERBOSITY=1;;
3180 *) AM_DEFAULT_VERBOSITY=0;;
3239 case $enable_silent_rules in # (((
3240 yes) AM_DEFAULT_VERBOSITY=0;;
3241 no) AM_DEFAULT_VERBOSITY=1;;
3242 *) AM_DEFAULT_VERBOSITY=0;;
31813243 esac
31823244 am_make=${MAKE-make}
31833245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
32303292 _am_result=none
32313293 # First try GNU make style include.
32323294 echo "include confinc" > confmf
3233 # Ignore all kinds of additional output from `make'.
3295 # Ignore all kinds of additional output from 'make'.
32343296 case `$am_make -s -f confmf 2> /dev/null` in #(
32353297 *the\ am__doit\ target*)
32363298 am__include=include
40744136 # We make a subdir and do the tests there. Otherwise we can end up
40754137 # making bogus files that we don't know about and never remove. For
40764138 # instance it was reported that on HP-UX the gcc test will end up
4077 # making a dummy file named `D' -- because `-MD' means `put the output
4078 # in D'.
4139 # making a dummy file named 'D' -- because '-MD' means "put the output
4140 # in D".
40794141 rm -rf conftest.dir
40804142 mkdir conftest.dir
40814143 # Copy depcomp to subdir because otherwise we won't find it if we're
41104172 : > sub/conftest.c
41114173 for i in 1 2 3 4 5 6; do
41124174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4113 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4114 # Solaris 8's {/usr,}/bin/sh.
4115 touch sub/conftst$i.h
4175 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4176 # Solaris 10 /bin/sh.
4177 echo '/* dummy */' > sub/conftst$i.h
41164178 done
41174179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
41184180
4119 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181 # We check with '-c' and '-o' for the sake of the "dashmstdout"
41204182 # mode. It turns out that the SunPro C++ compiler does not properly
4121 # handle `-M -o', and we need to detect this. Also, some Intel
4122 # versions had trouble with output in subdirs
4183 # handle '-M -o', and we need to detect this. Also, some Intel
4184 # versions had trouble with output in subdirs.
41234185 am__obj=sub/conftest.${OBJEXT-o}
41244186 am__minus_obj="-o $am__obj"
41254187 case $depmode in
41284190 test "$am__universal" = false || continue
41294191 ;;
41304192 nosideeffect)
4131 # after this tag, mechanisms are not by side-effect, so they'll
4132 # only be used when explicitly requested
4193 # After this tag, mechanisms are not by side-effect, so they'll
4194 # only be used when explicitly requested.
41334195 if test "x$enable_dependency_tracking" = xyes; then
41344196 continue
41354197 else
41374199 fi
41384200 ;;
41394201 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4140 # This compiler won't grok `-c -o', but also, the minuso test has
4202 # This compiler won't grok '-c -o', but also, the minuso test has
41414203 # not run yet. These depmodes are late enough in the game, and
41424204 # so weak that their functioning should not be impacted.
41434205 am__obj=conftest.${OBJEXT-o}
1249912561 # We make a subdir and do the tests there. Otherwise we can end up
1250012562 # making bogus files that we don't know about and never remove. For
1250112563 # instance it was reported that on HP-UX the gcc test will end up
12502 # making a dummy file named `D' -- because `-MD' means `put the output
12503 # in D'.
12564 # making a dummy file named 'D' -- because '-MD' means "put the output
12565 # in D".
1250412566 rm -rf conftest.dir
1250512567 mkdir conftest.dir
1250612568 # Copy depcomp to subdir because otherwise we won't find it if we're
1253512597 : > sub/conftest.c
1253612598 for i in 1 2 3 4 5 6; do
1253712599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12539 # Solaris 8's {/usr,}/bin/sh.
12540 touch sub/conftst$i.h
12600 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12601 # Solaris 10 /bin/sh.
12602 echo '/* dummy */' > sub/conftst$i.h
1254112603 done
1254212604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1254312605
12544 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12606 # We check with '-c' and '-o' for the sake of the "dashmstdout"
1254512607 # mode. It turns out that the SunPro C++ compiler does not properly
12546 # handle `-M -o', and we need to detect this. Also, some Intel
12547 # versions had trouble with output in subdirs
12608 # handle '-M -o', and we need to detect this. Also, some Intel
12609 # versions had trouble with output in subdirs.
1254812610 am__obj=sub/conftest.${OBJEXT-o}
1254912611 am__minus_obj="-o $am__obj"
1255012612 case $depmode in
1255312615 test "$am__universal" = false || continue
1255412616 ;;
1255512617 nosideeffect)
12556 # after this tag, mechanisms are not by side-effect, so they'll
12557 # only be used when explicitly requested
12618 # After this tag, mechanisms are not by side-effect, so they'll
12619 # only be used when explicitly requested.
1255812620 if test "x$enable_dependency_tracking" = xyes; then
1255912621 continue
1256012622 else
1256212624 fi
1256312625 ;;
1256412626 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12565 # This compiler won't grok `-c -o', but also, the minuso test has
12627 # This compiler won't grok '-c -o', but also, the minuso test has
1256612628 # not run yet. These depmodes are late enough in the game, and
1256712629 # so weak that their functioning should not be impacted.
1256812630 am__obj=conftest.${OBJEXT-o}
1306113123 # We make a subdir and do the tests there. Otherwise we can end up
1306213124 # making bogus files that we don't know about and never remove. For
1306313125 # instance it was reported that on HP-UX the gcc test will end up
13064 # making a dummy file named `D' -- because `-MD' means `put the output
13065 # in D'.
13126 # making a dummy file named 'D' -- because '-MD' means "put the output
13127 # in D".
1306613128 rm -rf conftest.dir
1306713129 mkdir conftest.dir
1306813130 # Copy depcomp to subdir because otherwise we won't find it if we're
1309713159 : > sub/conftest.c
1309813160 for i in 1 2 3 4 5 6; do
1309913161 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13101 # Solaris 8's {/usr,}/bin/sh.
13102 touch sub/conftst$i.h
13162 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13163 # Solaris 10 /bin/sh.
13164 echo '/* dummy */' > sub/conftst$i.h
1310313165 done
1310413166 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1310513167
13106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13168 # We check with '-c' and '-o' for the sake of the "dashmstdout"
1310713169 # mode. It turns out that the SunPro C++ compiler does not properly
13108 # handle `-M -o', and we need to detect this. Also, some Intel
13109 # versions had trouble with output in subdirs
13170 # handle '-M -o', and we need to detect this. Also, some Intel
13171 # versions had trouble with output in subdirs.
1311013172 am__obj=sub/conftest.${OBJEXT-o}
1311113173 am__minus_obj="-o $am__obj"
1311213174 case $depmode in
1311513177 test "$am__universal" = false || continue
1311613178 ;;
1311713179 nosideeffect)
13118 # after this tag, mechanisms are not by side-effect, so they'll
13119 # only be used when explicitly requested
13180 # After this tag, mechanisms are not by side-effect, so they'll
13181 # only be used when explicitly requested.
1312013182 if test "x$enable_dependency_tracking" = xyes; then
1312113183 continue
1312213184 else
1312413186 fi
1312513187 ;;
1312613188 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13127 # This compiler won't grok `-c -o', but also, the minuso test has
13189 # This compiler won't grok '-c -o', but also, the minuso test has
1312813190 # not run yet. These depmodes are late enough in the game, and
1312913191 # so weak that their functioning should not be impacted.
1313013192 am__obj=conftest.${OBJEXT-o}
2008020142 fi
2008120143
2008220144
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
20146 $as_echo_n "checking for library containing setproctitle... " >&6; }
20147 if ${ac_cv_search_setproctitle+:} false; then :
20148 $as_echo_n "(cached) " >&6
20149 else
20150 ac_func_search_save_LIBS=$LIBS
20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152 /* end confdefs.h. */
20153
20154 /* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20157 #ifdef __cplusplus
20158 extern "C"
20159 #endif
20160 char setproctitle ();
20161 int
20162 main ()
20163 {
20164 return setproctitle ();
20165 ;
20166 return 0;
20167 }
20168 _ACEOF
20169 for ac_lib in '' util bsd; do
20170 if test -z "$ac_lib"; then
20171 ac_res="none required"
20172 else
20173 ac_res=-l$ac_lib
20174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20175 fi
20176 if ac_fn_c_try_link "$LINENO"; then :
20177 ac_cv_search_setproctitle=$ac_res
20178 fi
20179 rm -f core conftest.err conftest.$ac_objext \
20180 conftest$ac_exeext
20181 if ${ac_cv_search_setproctitle+:} false; then :
20182 break
20183 fi
20184 done
20185 if ${ac_cv_search_setproctitle+:} false; then :
20186
20187 else
20188 ac_cv_search_setproctitle=no
20189 fi
20190 rm conftest.$ac_ext
20191 LIBS=$ac_func_search_save_LIBS
20192 fi
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
20194 $as_echo "$ac_cv_search_setproctitle" >&6; }
20195 ac_res=$ac_cv_search_setproctitle
20196 if test "$ac_res" != no; then :
20197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20198
20199 fi
20200
2008320201 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
2008420202 if test "x$ac_cv_func_strlcpy" = xyes; then :
2008520203 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
2011420232 case " $LIBOBJS " in
2011520233 *" fgetln.$ac_objext "* ) ;;
2011620234 *) LIBOBJS="$LIBOBJS fgetln.$ac_objext"
20235 ;;
20236 esac
20237
20238 fi
20239
20240 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
20241 if test "x$ac_cv_func_setproctitle" = xyes; then :
20242 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
20243
20244 else
20245 case " $LIBOBJS " in
20246 *" setproctitle.$ac_objext "* ) ;;
20247 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
2011720248 ;;
2011820249 esac
2011920250
2013220263 fi
2013320264 done
2013420265
20266
20267 case " $LIBS " in
20268 *\ -lbsd\ *)
20269
20270 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
20271
20272 ;;
20273 esac
2013520274
2013620275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
2013720276 $as_echo_n "checking for library containing __res_init... " >&6; }
2192922068 LTLIBOBJS=$ac_ltlibobjs
2193022069
2193122070
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22072 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22073 if test -n "$am_sleep_pid"; then
22074 # Hide warnings about reused PIDs.
22075 wait $am_sleep_pid 2>/dev/null
22076 fi
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22078 $as_echo "done" >&6; }
2193222079 if test -n "$EXEEXT"; then
2193322080 am__EXEEXT_TRUE=
2193422081 am__EXEEXT_FALSE='#'
2244622593 # report actual input values of CONFIG_FILES etc. instead of their
2244722594 # values after options handling.
2244822595 ac_log="
22449 This file was extended by lldpd $as_me 0.7.3, which was
22596 This file was extended by lldpd $as_me 0.7.4, which was
2245022597 generated by GNU Autoconf 2.69. Invocation command line was
2245122598
2245222599 CONFIG_FILES = $CONFIG_FILES
2251222659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2251322660 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2251422661 ac_cs_version="\\
22515 lldpd config.status 0.7.3
22662 lldpd config.status 0.7.4
2251622663 configured by $0, generated by GNU Autoconf 2.69,
2251722664 with options \\"\$ac_cs_config\\"
2251822665
2362323770
2362423771 case $ac_file$ac_mode in
2362523772 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23626 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23773 # Older Autoconf quotes --file arguments for eval, but not when files
2362723774 # are listed without --file. Let's play safe and only enable the eval
2362823775 # if we detect the quoting.
2362923776 case $CONFIG_FILES in
2363623783 # Strip MF so we end up with the name of the file.
2363723784 mf=`echo "$mf" | sed -e 's/:.*$//'`
2363823785 # Check whether this is an Automake generated Makefile or not.
23639 # We used to match only the files named `Makefile.in', but
23786 # We used to match only the files named 'Makefile.in', but
2364023787 # some people rename them; so instead we look at the file content.
2364123788 # Grep'ing the first line is not enough: some people post-process
2364223789 # each Makefile.in and add a new line on top of each file to say so.
2367023817 continue
2367123818 fi
2367223819 # Extract the definition of DEPDIR, am__include, and am__quote
23673 # from the Makefile without running `make'.
23820 # from the Makefile without running 'make'.
2367423821 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2367523822 test -z "$DEPDIR" && continue
2367623823 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23677 test -z "am__include" && continue
23824 test -z "$am__include" && continue
2367823825 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23679 # When using ansi2knr, U may be empty or an underscore; expand it
23680 U=`sed -n 's/^U = //p' < "$mf"`
2368123826 # Find all dependency output files, they are included files with
2368223827 # $(DEPDIR) in their names. We invoke sed twice because it is the
2368323828 # simplest approach to changing $(DEPDIR) to its actual value in the
2368423829 # expansion.
2368523830 for file in `sed -n "
2368623831 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23687 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23832 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
2368823833 # Make sure the directory exists.
2368923834 test -f "$dirpart/$file" && continue
2369023835 fdir=`$as_dirname -- "$file" ||
9494 AC_CONFIG_LIBOBJ_DIR([src/compat])
9595 AC_FUNC_MALLOC
9696 AC_FUNC_REALLOC
97 AC_REPLACE_FUNCS([strlcpy strnlen fgetln])
97 AC_SEARCH_LIBS([setproctitle], [util bsd])
98 AC_REPLACE_FUNCS([strlcpy strnlen fgetln setproctitle])
9899 AC_CHECK_FUNCS([setresuid setresgid])
100
101 case " $LIBS " in
102 *\ -lbsd\ *)
103 AC_DEFINE(HAVE_LIBBSD, 1, [Define if libbsd is used])
104 ;;
105 esac
99106
100107 AC_SEARCH_LIBS([__res_init], resolv bind, AC_DEFINE([HAVE_RES_INIT], 1, [Define to indicate that res_init() exists]),
101108 AC_SEARCH_LIBS([res_9_init], resolv bind, AC_DEFINE([HAVE_RES_INIT], 1, [Define to indicate that res_init() exists]),
+271
-188
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2012-03-27.16; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011, 2012 Free Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try '$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3332 -h | --h*)
3433 cat <<\EOF
3534 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
5655 ;;
5756 esac
5857
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
59106 # A tabulation character.
60107 tab=' '
61108 # A newline character.
62109 nl='
63110 '
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}
64117
65118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
66119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
73126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
74127
75128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
76132
77133 # Some modes work just like other modes, but use different flags. We
78134 # parameterize here, but still list the modes in the big case below,
85141 fi
86142
87143 if test "$depmode" = dashXmstdout; then
88 # This is just like dashmstdout with a different argument.
89 dashmflag=-xM
90 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
91147 fi
92148
93149 cygpath_u="cygpath -u -f -"
94150 if test "$depmode" = msvcmsys; then
95 # This is just like msvisualcpp but w/o cygpath translation.
96 # Just convert the backslash-escaped backslashes to single forward
97 # slashes to satisfy depend.m4
98 cygpath_u='sed s,\\\\,/,g'
99 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
100156 fi
101157
102158 if test "$depmode" = msvc7msys; then
103 # This is just like msvc7 but w/o cygpath translation.
104 # Just convert the backslash-escaped backslashes to single forward
105 # slashes to satisfy depend.m4
106 cygpath_u='sed s,\\\\,/,g'
107 depmode=msvc7
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
108164 fi
109165
110166 if test "$depmode" = xlc; then
111 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
112 gccflag=-qmakedep=gcc,-MF
113 depmode=gcc
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
114170 fi
115171
116172 case "$depmode" in
133189 done
134190 "$@"
135191 stat=$?
136 if test $stat -eq 0; then :
137 else
192 if test $stat -ne 0; then
138193 rm -f "$tmpdepfile"
139194 exit $stat
140195 fi
142197 ;;
143198
144199 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).
145203 ## There are various ways to get dependency output from gcc. Here's
146204 ## why we pick this rather obscure method:
147205 ## - Don't want to use -MD because we'd like the dependencies to end
148206 ## up in a subdir. Having to rename by hand is ugly.
149207 ## (We might end up doing this anyway to support other compilers.)
150208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
151 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
152211 ## - Using -M directly means running the compiler twice (even worse
153212 ## than renaming).
154213 if test -z "$gccflag"; then
156215 fi
157216 "$@" -Wp,"$gccflag$tmpdepfile"
158217 stat=$?
159 if test $stat -eq 0; then :
160 else
218 if test $stat -ne 0; then
161219 rm -f "$tmpdepfile"
162220 exit $stat
163221 fi
164222 rm -f "$depfile"
165223 echo "$object : \\" > "$depfile"
166 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
167 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
168226 sed -e 's/^[^:]*: / /' \
169227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
170228 ## This next piece of magic avoids the "deleted header file" problem.
173231 ## typically no way to rebuild the header). We avoid this by adding
174232 ## dummy dependencies for each header file. Too bad gcc doesn't do
175233 ## this for us directly.
176 tr ' ' "$nl" < "$tmpdepfile" |
177234 ## Some versions of gcc put a space before the ':'. On the theory
178235 ## that the space means something, we add a space to the output as
179236 ## well. hp depmode also adds that space, but also prefixes the VPATH
180237 ## to the object. Take care to not repeat it in the output.
181238 ## Some versions of the HPUX 10.20 sed can't process this invocation
182239 ## correctly. Breaking it into two sed invocations is a workaround.
183 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
184 | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
185243 rm -f "$tmpdepfile"
186244 ;;
187245
199257 "$@" -MDupdate "$tmpdepfile"
200258 fi
201259 stat=$?
202 if test $stat -eq 0; then :
203 else
260 if test $stat -ne 0; then
204261 rm -f "$tmpdepfile"
205262 exit $stat
206263 fi
208265
209266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
210267 echo "$object : \\" > "$depfile"
211
212268 # Clip off the initial element (the dependent). Don't try to be
213269 # clever and replace this with sed code, as IRIX sed won't handle
214270 # lines with more than a fixed number of characters (4096 in
216272 # the IRIX cc adds comments like '#:fec' to the end of the
217273 # dependency line.
218274 tr ' ' "$nl" < "$tmpdepfile" \
219 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
220 tr "$nl" ' ' >> "$depfile"
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
221277 echo >> "$depfile"
222
223278 # The second pass generates a dummy entry for each header file.
224279 tr ' ' "$nl" < "$tmpdepfile" \
225 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
226 >> "$depfile"
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
227282 else
228 # The sourcefile does not contain any dependencies, so just
229 # store a dummy comment line, to avoid errors with the Makefile
230 # "include basename.Plo" scheme.
231 echo "#dummy" > "$depfile"
283 make_dummy_depfile
232284 fi
233285 rm -f "$tmpdepfile"
234286 ;;
246298 # current directory. Also, the AIX compiler puts '$object:' at the
247299 # start of each line; $object doesn't have directory information.
248300 # Version 6 uses the directory in both cases.
249 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
250 test "x$dir" = "x$object" && dir=
251 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
252303 if test "$libtool" = yes; then
253304 tmpdepfile1=$dir$base.u
254305 tmpdepfile2=$base.u
261312 "$@" -M
262313 fi
263314 stat=$?
264
265 if test $stat -eq 0; then :
266 else
315 if test $stat -ne 0; then
267316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
268317 exit $stat
269318 fi
272321 do
273322 test -f "$tmpdepfile" && break
274323 done
275 if test -f "$tmpdepfile"; then
276 # Each line is of the form 'foo.o: dependent.h'.
277 # Do two passes, one to just change these to
278 # '$object: dependent.h' and one to simply 'dependent.h:'.
279 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
280 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
281 else
282 # The sourcefile does not contain any dependencies, so just
283 # store a dummy comment line, to avoid errors with the Makefile
284 # "include basename.Plo" scheme.
285 echo "#dummy" > "$depfile"
286 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
287355 rm -f "$tmpdepfile"
288356 ;;
289357
290 icc)
291 # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
292 # However on
293 # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
294 # ICC 7.0 will fill foo.d with something like
295 # foo.o: sub/foo.c
296 # foo.o: sub/foo.h
297 # which is wrong. We want
298 # sub/foo.o: sub/foo.c
299 # sub/foo.o: sub/foo.h
300 # sub/foo.c:
301 # sub/foo.h:
302 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
303368 # foo.o: sub/foo.c sub/foo.h
304 # and will wrap long lines using '\':
369 # and will wrap long lines using '\' :
305370 # foo.o: sub/foo.c ... \
306371 # sub/foo.h ... \
307372 # ...
308 # tcc 0.9.26 (FIXME still under development at the moment of writing)
309 # will emit a similar output, but also prepend the continuation lines
310 # with horizontal tabulation characters.
311 "$@" -MD -MF "$tmpdepfile"
312 stat=$?
313 if test $stat -eq 0; then :
314 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
315418 rm -f "$tmpdepfile"
316419 exit $stat
317420 fi
318421 rm -f "$depfile"
319 # Each line is of the form 'foo.o: dependent.h',
320 # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
321424 # Do two passes, one to just change these to
322 # '$object: dependent.h' and one to simply 'dependent.h:'.
323 sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
324 < "$tmpdepfile" > "$depfile"
325 sed '
326 s/[ '"$tab"'][ '"$tab"']*/ /g
327 s/^ *//
328 s/ *\\*$//
329 s/^[^:]*: *//
330 /^$/d
331 /:$/d
332 s/$/ :/
333 ' < "$tmpdepfile" >> "$depfile"
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"
334431 rm -f "$tmpdepfile"
335432 ;;
336433
341438 # 'foo.d', which lands next to the object file, wherever that
342439 # happens to be.
343440 # Much of this is similar to the tru64 case; see comments there.
344 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
345 test "x$dir" = "x$object" && dir=
346 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
347443 if test "$libtool" = yes; then
348444 tmpdepfile1=$dir$base.d
349445 tmpdepfile2=$dir.libs/$base.d
354450 "$@" +Maked
355451 fi
356452 stat=$?
357 if test $stat -eq 0; then :
358 else
453 if test $stat -ne 0; then
359454 rm -f "$tmpdepfile1" "$tmpdepfile2"
360455 exit $stat
361456 fi
365460 test -f "$tmpdepfile" && break
366461 done
367462 if test -f "$tmpdepfile"; then
368 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
369464 # Add 'dependent.h:' lines.
370465 sed -ne '2,${
371 s/^ *//
372 s/ \\*$//
373 s/$/:/
374 p
375 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
376471 else
377 echo "#dummy" > "$depfile"
472 make_dummy_depfile
378473 fi
379474 rm -f "$tmpdepfile" "$tmpdepfile2"
380475 ;;
381476
382477 tru64)
383 # The Tru64 compiler uses -MD to generate dependencies as a side
384 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
385 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
386 # dependencies in 'foo.d' instead, so we check for that too.
387 # Subdirectories are respected.
388 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
389 test "x$dir" = "x$object" && dir=
390 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
391
392 if test "$libtool" = yes; then
393 # With Tru64 cc, shared objects can also be used to make a
394 # static library. This mechanism is used in libtool 1.4 series to
395 # handle both shared and static libraries in a single compilation.
396 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
397 #
398 # With libtool 1.5 this exception was removed, and libtool now
399 # generates 2 separate objects for the 2 libraries. These two
400 # compilations output dependencies in $dir.libs/$base.o.d and
401 # in $dir$base.o.d. We have to check for both files, because
402 # one of the two compilations can be disabled. We should prefer
403 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
404 # automatically cleaned when .libs/ is deleted, while ignoring
405 # the former would cause a distcleancheck panic.
406 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
407 tmpdepfile2=$dir$base.o.d # libtool 1.5
408 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
409 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
410 "$@" -Wc,-MD
411 else
412 tmpdepfile1=$dir$base.o.d
413 tmpdepfile2=$dir$base.d
414 tmpdepfile3=$dir$base.d
415 tmpdepfile4=$dir$base.d
416 "$@" -MD
417 fi
418
419 stat=$?
420 if test $stat -eq 0; then :
421 else
422 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
423 exit $stat
424 fi
425
426 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
427 do
428 test -f "$tmpdepfile" && break
429 done
430 if test -f "$tmpdepfile"; then
431 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
432 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
433 else
434 echo "#dummy" > "$depfile"
435 fi
436 rm -f "$tmpdepfile"
437 ;;
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 ;;
438518
439519 msvc7)
440520 if test "$libtool" = yes; then
445525 "$@" $showIncludes > "$tmpdepfile"
446526 stat=$?
447527 grep -v '^Note: including file: ' "$tmpdepfile"
448 if test "$stat" = 0; then :
449 else
528 if test $stat -ne 0; then
450529 rm -f "$tmpdepfile"
451530 exit $stat
452531 fi
472551 G
473552 p
474553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
475555 rm -f "$tmpdepfile"
476556 ;;
477557
523603 # in the target name. This is to cope with DOS-style filenames:
524604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
525605 "$@" $dashmflag |
526 sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
527607 rm -f "$depfile"
528608 cat < "$tmpdepfile" > "$depfile"
529 tr ' ' "$nl" < "$tmpdepfile" | \
530 ## Some versions of the HPUX 10.20 sed can't process this invocation
531 ## correctly. Breaking it into two sed invocations is a workaround.
532 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
533614 rm -f "$tmpdepfile"
534615 ;;
535616
582663 # makedepend may prepend the VPATH from the source file name to the object.
583664 # No need to regex-escape $object, excess matching of '.' is harmless.
584665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
585 sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
586 ## Some versions of the HPUX 10.20 sed can't process this invocation
587 ## correctly. Breaking it into two sed invocations is a workaround.
588 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$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"
589672 rm -f "$tmpdepfile" "$tmpdepfile".bak
590673 ;;
591674
621704 esac
622705 done
623706
624 "$@" -E |
625 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
626 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
627 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
628711 rm -f "$depfile"
629712 echo "$object : \\" > "$depfile"
630713 cat < "$tmpdepfile" >> "$depfile"
656739 shift
657740 ;;
658741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
659 set fnord "$@"
660 shift
661 shift
662 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
663746 *)
664 set fnord "$@" "$arg"
665 shift
666 shift
667 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
668751 esac
669752 done
670753 "$@" -E 2>/dev/null |
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-01-19.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
158 # Protect names problematic for 'test' and other utilities.
159159 case $dst_arg in
160160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161161 esac
189189 fi
190190 shift # arg
191191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
192 # Protect names problematic for 'test' and other utilities.
193193 case $dst_arg in
194194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195195 esac
201201 echo "$0: no input file specified." >&2
202202 exit 1
203203 fi
204 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
205205 # This can happen when creating conditional directories.
206206 exit 0
207207 fi
239239
240240 for src
241241 do
242 # Protect names problematic for `test' and other utilities.
242 # Protect names problematic for 'test' and other utilities.
243243 case $src in
244244 -* | [=\(\)!]) src=./$src;;
245245 esac
353353 if test -z "$dir_arg" || {
354354 # Check for POSIX incompatibilities with -m.
355355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
357357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359359 case $ls_ld_tmpdir in
0 Changes in version 2.0.22-stable (?? ??? 2013)
1
2 (As of 66dacfa2a58602d82e0413c8217ec38c9871d5cf.)
3
4 BUGFIXES (evhttp, crash fix)
5 o fix #73 and fix http_connection_fail_test to catch it (b618204 Greg Hazel)
6
7 BUGFIXES (compilation and portability)
8 o Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled (7e45739)
9 o Fix missing AC_PROG_SED on older Autoconfs (9ab2b3f Tay Ray Chuan)
10 o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5) (74d4c44 Kevin Bowling)
11 o Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat (817ea36)
12 o Rename configure.in to configure.ac to appease newer autoconfs (0c79787)
13 o Avoid using top_srcdir in TESTS: new automakes do not like this (a55514e)
14
15 BUGFIXES (resource leaks/lock errors on error)
16 o Avoid leaking fds on evconnlistener with no callback set (69db261)
17 o Avoid double-close on getsockname error in evutil_ersatz_socketpair (0a822a6)
18 o Fix a locking error in bufferevent_socket_get_dns_error. (0a5eb2e)
19
20 DOCUMENTATION FIXES
21 o Fix a mistake in evbuffer_remove() arguments in example http server code (c322c20 Gyepi Sam)
22 o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
23
24
25
026 Changes in version 2.0.21-stable (18 Nov 2012)
127 BUGFIXES:
228 o ssl: Don't discard SSL read event when timeout and read come close together (576b29f)
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2423
2524
2625 VPATH = @srcdir@
27 am__make_dryrun = \
28 { \
29 am__dry=no; \
26 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
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 \
3039 case $$MAKEFLAGS in \
3140 *\\[\ \ ]*) \
32 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
33 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
34 *) \
35 for am__flg in $$MAKEFLAGS; do \
36 case $$am__flg in \
37 *=*|--*) ;; \
38 *n*) am__dry=yes; break;; \
39 esac; \
40 done;; \
41 bs=\\; \
42 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
43 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
4144 esac; \
42 test $$am__dry = yes; \
43 }
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))
4471 pkgdatadir = $(datadir)/@PACKAGE@
4572 pkgincludedir = $(includedir)/@PACKAGE@
4673 pkglibdir = $(libdir)/@PACKAGE@
7299 @SIGNAL_SUPPORT_TRUE@am__append_11 = signal.c
73100 @INSTALL_LIBEVENT_FALSE@am__append_12 = $(EVENT1_HDRS)
74101 subdir = .
75 DIST_COMMON = README $(am__configure_deps) \
76 $(am__dist_bin_SCRIPTS_DIST) $(am__include_HEADERS_DIST) \
77 $(am__noinst_HEADERS_DIST) $(srcdir)/../compile \
78 $(srcdir)/../config.guess $(srcdir)/../config.sub \
79 $(srcdir)/../depcomp $(srcdir)/../install-sh \
80 $(srcdir)/../ltmain.sh $(srcdir)/../missing \
81 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
102 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
103 $(top_srcdir)/configure $(am__configure_deps) \
82104 $(srcdir)/config.h.in $(srcdir)/libevent.pc.in \
83105 $(srcdir)/libevent_openssl.pc.in \
84 $(srcdir)/libevent_pthreads.pc.in $(top_srcdir)/configure \
85 ChangeLog epoll_sub.c
106 $(srcdir)/libevent_pthreads.pc.in epoll_sub.c \
107 $(am__dist_bin_SCRIPTS_DIST) $(top_srcdir)/../depcomp \
108 $(am__include_HEADERS_DIST) $(am__noinst_HEADERS_DIST) \
109 ChangeLog README $(top_srcdir)/../compile \
110 $(top_srcdir)/../config.guess $(top_srcdir)/../config.sub \
111 $(top_srcdir)/../install-sh $(top_srcdir)/../ltmain.sh \
112 $(top_srcdir)/../missing
86113 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
87 am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
88 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
89 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
90 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in
114 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \
115 $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
116 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
117 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
118 $(top_srcdir)/configure.ac
91119 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
92120 $(ACLOCAL_M4)
93121 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
160188 am__objects_10 = event_tagging.lo http.lo evdns.lo evrpc.lo
161189 am_libevent_la_OBJECTS = $(am__objects_9) $(am__objects_10)
162190 libevent_la_OBJECTS = $(am_libevent_la_OBJECTS)
163 libevent_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
191 AM_V_lt = $(am__v_lt_@AM_V@)
192 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
193 am__v_lt_0 = --silent
194 am__v_lt_1 =
195 libevent_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
164196 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
165197 $(libevent_la_LDFLAGS) $(LDFLAGS) -o $@
166198 @INSTALL_LIBEVENT_FALSE@am_libevent_la_rpath =
175207 bufferevent_async.c
176208 am_libevent_core_la_OBJECTS = $(am__objects_9)
177209 libevent_core_la_OBJECTS = $(am_libevent_core_la_OBJECTS)
178 libevent_core_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
179 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
180 $(libevent_core_la_LDFLAGS) $(LDFLAGS) -o $@
210 libevent_core_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
211 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
212 $(AM_CFLAGS) $(CFLAGS) $(libevent_core_la_LDFLAGS) $(LDFLAGS) \
213 -o $@
181214 @INSTALL_LIBEVENT_FALSE@am_libevent_core_la_rpath =
182215 @INSTALL_LIBEVENT_TRUE@am_libevent_core_la_rpath = -rpath $(libdir)
183216 @BUILD_WITH_NO_UNDEFINED_TRUE@am__DEPENDENCIES_2 = libevent_core.la
185218 $(am__DEPENDENCIES_1)
186219 am_libevent_extra_la_OBJECTS = $(am__objects_10)
187220 libevent_extra_la_OBJECTS = $(am_libevent_extra_la_OBJECTS)
188 libevent_extra_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
189 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
190 $(libevent_extra_la_LDFLAGS) $(LDFLAGS) -o $@
221 libevent_extra_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
222 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
223 $(AM_CFLAGS) $(CFLAGS) $(libevent_extra_la_LDFLAGS) $(LDFLAGS) \
224 -o $@
191225 @INSTALL_LIBEVENT_FALSE@am_libevent_extra_la_rpath =
192226 @INSTALL_LIBEVENT_TRUE@am_libevent_extra_la_rpath = -rpath $(libdir)
193227 @OPENSSL_TRUE@libevent_openssl_la_DEPENDENCIES = \
195229 am__libevent_openssl_la_SOURCES_DIST = bufferevent_openssl.c
196230 @OPENSSL_TRUE@am_libevent_openssl_la_OBJECTS = bufferevent_openssl.lo
197231 libevent_openssl_la_OBJECTS = $(am_libevent_openssl_la_OBJECTS)
198 libevent_openssl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
199 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
200 $(libevent_openssl_la_LDFLAGS) $(LDFLAGS) -o $@
232 libevent_openssl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
233 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
234 $(AM_CFLAGS) $(CFLAGS) $(libevent_openssl_la_LDFLAGS) \
235 $(LDFLAGS) -o $@
201236 @INSTALL_LIBEVENT_FALSE@@OPENSSL_TRUE@am_libevent_openssl_la_rpath =
202237 @INSTALL_LIBEVENT_TRUE@@OPENSSL_TRUE@am_libevent_openssl_la_rpath = \
203238 @INSTALL_LIBEVENT_TRUE@@OPENSSL_TRUE@ -rpath $(libdir)
206241 am__libevent_pthreads_la_SOURCES_DIST = evthread_pthread.c
207242 @PTHREADS_TRUE@am_libevent_pthreads_la_OBJECTS = evthread_pthread.lo
208243 libevent_pthreads_la_OBJECTS = $(am_libevent_pthreads_la_OBJECTS)
209 libevent_pthreads_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
210 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
211 $(libevent_pthreads_la_LDFLAGS) $(LDFLAGS) -o $@
244 libevent_pthreads_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
245 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
246 $(AM_CFLAGS) $(CFLAGS) $(libevent_pthreads_la_LDFLAGS) \
247 $(LDFLAGS) -o $@
212248 @INSTALL_LIBEVENT_FALSE@@PTHREADS_TRUE@am_libevent_pthreads_la_rpath =
213249 @INSTALL_LIBEVENT_TRUE@@PTHREADS_TRUE@am_libevent_pthreads_la_rpath = \
214250 @INSTALL_LIBEVENT_TRUE@@PTHREADS_TRUE@ -rpath $(libdir)
215251 am__dist_bin_SCRIPTS_DIST = event_rpcgen.py
216252 SCRIPTS = $(dist_bin_SCRIPTS)
253 AM_V_P = $(am__v_P_@AM_V@)
254 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
255 am__v_P_0 = false
256 am__v_P_1 = :
257 AM_V_GEN = $(am__v_GEN_@AM_V@)
258 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
259 am__v_GEN_0 = @echo " GEN " $@;
260 am__v_GEN_1 =
261 AM_V_at = $(am__v_at_@AM_V@)
262 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
263 am__v_at_0 = @
264 am__v_at_1 =
217265 DEFAULT_INCLUDES = -I.@am__isrc@
218266 depcomp = $(SHELL) $(top_srcdir)/../depcomp
219267 am__depfiles_maybe = depfiles
220268 am__mv = mv -f
221269 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
222270 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
223 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
224 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
225 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
271 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
272 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
273 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
274 $(AM_CFLAGS) $(CFLAGS)
275 AM_V_CC = $(am__v_CC_@AM_V@)
276 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
277 am__v_CC_0 = @echo " CC " $@;
278 am__v_CC_1 =
226279 CCLD = $(CC)
227 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
228 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
229 $(LDFLAGS) -o $@
280 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
281 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
282 $(AM_LDFLAGS) $(LDFLAGS) -o $@
283 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
284 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
285 am__v_CCLD_0 = @echo " CCLD " $@;
286 am__v_CCLD_1 =
230287 SOURCES = $(libevent_la_SOURCES) $(libevent_core_la_SOURCES) \
231288 $(libevent_extra_la_SOURCES) $(libevent_openssl_la_SOURCES) \
232289 $(libevent_pthreads_la_SOURCES)
235292 $(libevent_extra_la_SOURCES) \
236293 $(am__libevent_openssl_la_SOURCES_DIST) \
237294 $(am__libevent_pthreads_la_SOURCES_DIST)
238 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
239 html-recursive info-recursive install-data-recursive \
240 install-dvi-recursive install-exec-recursive \
241 install-html-recursive install-info-recursive \
242 install-pdf-recursive install-ps-recursive install-recursive \
243 installcheck-recursive installdirs-recursive pdf-recursive \
244 ps-recursive uninstall-recursive
295 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
296 ctags-recursive dvi-recursive html-recursive info-recursive \
297 install-data-recursive install-dvi-recursive \
298 install-exec-recursive install-html-recursive \
299 install-info-recursive install-pdf-recursive \
300 install-ps-recursive install-recursive installcheck-recursive \
301 installdirs-recursive pdf-recursive ps-recursive \
302 tags-recursive uninstall-recursive
245303 am__can_run_installinfo = \
246304 case $$AM_UPDATE_INFO_DIR in \
247305 n|no|NO) false;; \
261319 HEADERS = $(include_HEADERS) $(noinst_HEADERS)
262320 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
263321 distclean-recursive maintainer-clean-recursive
264 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
265 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
266 distdir dist dist-all distcheck
322 am__recursive_targets = \
323 $(RECURSIVE_TARGETS) \
324 $(RECURSIVE_CLEAN_TARGETS) \
325 $(am__extra_recursive_targets)
326 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
327 cscope distdir dist dist-all distcheck
328 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
329 $(LISP)config.h.in
330 # Read a list of newline-separated strings from the standard input,
331 # and print each of them once, without duplicates. Input order is
332 # *not* preserved.
333 am__uniquify_input = $(AWK) '\
334 BEGIN { nonempty = 0; } \
335 { items[$$0] = 1; nonempty = 1; } \
336 END { if (nonempty) { for (i in items) print i; }; } \
337 '
338 # Make sure the list of sources is unique. This is necessary because,
339 # e.g., the same source file might be shared among _SOURCES variables
340 # for different programs/libraries.
341 am__define_uniq_tagged_files = \
342 list='$(am__tagged_files)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | $(am__uniquify_input)`
267346 ETAGS = etags
268347 CTAGS = ctags
348 CSCOPE = cscope
269349 DIST_SUBDIRS = $(SUBDIRS)
270350 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
271351 distdir = $(PACKAGE)-$(VERSION)
276356 && rm -rf "$(distdir)" \
277357 || { sleep 5 && rm -rf "$(distdir)"; }; \
278358 else :; fi
359 am__post_remove_distdir = $(am__remove_distdir)
279360 am__relativize = \
280361 dir0=`pwd`; \
281362 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
303384 reldir="$$dir2"
304385 DIST_ARCHIVES = $(distdir).tar.gz
305386 GZIP_ENV = --best
387 DIST_TARGETS = dist-gzip
306388 distuninstallcheck_listfiles = find . -type f -print
307389 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
308390 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
309391 distcleancheck_listfiles = find . -type f -print
310392 ACLOCAL = @ACLOCAL@
311393 AMTAR = @AMTAR@
394 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
312395 AR = @AR@
313396 AUTOCONF = @AUTOCONF@
314397 AUTOHEADER = @AUTOHEADER@
650733 cd $(top_builddir) && $(SHELL) ./config.status $@
651734 libevent_pthreads.pc: $(top_builddir)/config.status $(srcdir)/libevent_pthreads.pc.in
652735 cd $(top_builddir) && $(SHELL) ./config.status $@
736
653737 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
654738 @$(NORMAL_INSTALL)
655739 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
676760
677761 clean-libLTLIBRARIES:
678762 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
679 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
680 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
681 test "$$dir" != "$$p" || dir=.; \
682 echo "rm -f \"$${dir}/so_locations\""; \
683 rm -f "$${dir}/so_locations"; \
684 done
763 @list='$(lib_LTLIBRARIES)'; \
764 locs=`for p in $$list; do echo $$p; done | \
765 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
766 sort -u`; \
767 test -z "$$locs" || { \
768 echo rm -f $${locs}; \
769 rm -f $${locs}; \
770 }
685771
686772 clean-noinstLTLIBRARIES:
687773 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
688 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
689 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
690 test "$$dir" != "$$p" || dir=.; \
691 echo "rm -f \"$${dir}/so_locations\""; \
692 rm -f "$${dir}/so_locations"; \
693 done
774 @list='$(noinst_LTLIBRARIES)'; \
775 locs=`for p in $$list; do echo $$p; done | \
776 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
777 sort -u`; \
778 test -z "$$locs" || { \
779 echo rm -f $${locs}; \
780 rm -f $${locs}; \
781 }
782
694783 libevent.la: $(libevent_la_OBJECTS) $(libevent_la_DEPENDENCIES) $(EXTRA_libevent_la_DEPENDENCIES)
695 $(libevent_la_LINK) $(am_libevent_la_rpath) $(libevent_la_OBJECTS) $(libevent_la_LIBADD) $(LIBS)
784 $(AM_V_CCLD)$(libevent_la_LINK) $(am_libevent_la_rpath) $(libevent_la_OBJECTS) $(libevent_la_LIBADD) $(LIBS)
785
696786 libevent_core.la: $(libevent_core_la_OBJECTS) $(libevent_core_la_DEPENDENCIES) $(EXTRA_libevent_core_la_DEPENDENCIES)
697 $(libevent_core_la_LINK) $(am_libevent_core_la_rpath) $(libevent_core_la_OBJECTS) $(libevent_core_la_LIBADD) $(LIBS)
787 $(AM_V_CCLD)$(libevent_core_la_LINK) $(am_libevent_core_la_rpath) $(libevent_core_la_OBJECTS) $(libevent_core_la_LIBADD) $(LIBS)
788
698789 libevent_extra.la: $(libevent_extra_la_OBJECTS) $(libevent_extra_la_DEPENDENCIES) $(EXTRA_libevent_extra_la_DEPENDENCIES)
699 $(libevent_extra_la_LINK) $(am_libevent_extra_la_rpath) $(libevent_extra_la_OBJECTS) $(libevent_extra_la_LIBADD) $(LIBS)
790 $(AM_V_CCLD)$(libevent_extra_la_LINK) $(am_libevent_extra_la_rpath) $(libevent_extra_la_OBJECTS) $(libevent_extra_la_LIBADD) $(LIBS)
791
700792 libevent_openssl.la: $(libevent_openssl_la_OBJECTS) $(libevent_openssl_la_DEPENDENCIES) $(EXTRA_libevent_openssl_la_DEPENDENCIES)
701 $(libevent_openssl_la_LINK) $(am_libevent_openssl_la_rpath) $(libevent_openssl_la_OBJECTS) $(libevent_openssl_la_LIBADD) $(LIBS)
793 $(AM_V_CCLD)$(libevent_openssl_la_LINK) $(am_libevent_openssl_la_rpath) $(libevent_openssl_la_OBJECTS) $(libevent_openssl_la_LIBADD) $(LIBS)
794
702795 libevent_pthreads.la: $(libevent_pthreads_la_OBJECTS) $(libevent_pthreads_la_DEPENDENCIES) $(EXTRA_libevent_pthreads_la_DEPENDENCIES)
703 $(libevent_pthreads_la_LINK) $(am_libevent_pthreads_la_rpath) $(libevent_pthreads_la_OBJECTS) $(libevent_pthreads_la_LIBADD) $(LIBS)
796 $(AM_V_CCLD)$(libevent_pthreads_la_LINK) $(am_libevent_pthreads_la_rpath) $(libevent_pthreads_la_OBJECTS) $(libevent_pthreads_la_LIBADD) $(LIBS)
704797 install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
705798 @$(NORMAL_INSTALL)
706799 @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
778871 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/win32select.Plo@am__quote@
779872
780873 .c.o:
781 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
782 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
783 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
874 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
875 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
876 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
784877 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
785 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
878 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
786879
787880 .c.obj:
788 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
789 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
790 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
881 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
882 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
883 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
791884 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
792 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
885 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
793886
794887 .c.lo:
795 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
796 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
797 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
888 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
889 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
890 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
798891 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
799 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
892 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
800893
801894 mostlyclean-libtool:
802895 -rm -f *.lo
850943 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
851944
852945 # This directory's subdirectories are mostly independent; you can cd
853 # into them and run `make' without going through this Makefile.
854 # To change the values of `make' variables: instead of editing Makefiles,
855 # (1) if the variable is set in `config.status', edit `config.status'
856 # (which will cause the Makefiles to be regenerated when you run `make');
857 # (2) otherwise, pass the desired values on the `make' command line.
858 $(RECURSIVE_TARGETS):
859 @fail= failcom='exit 1'; \
860 for f in x $$MAKEFLAGS; do \
861 case $$f in \
862 *=* | --[!k]*);; \
863 *k*) failcom='fail=yes';; \
864 esac; \
865 done; \
946 # into them and run 'make' without going through this Makefile.
947 # To change the values of 'make' variables: instead of editing Makefiles,
948 # (1) if the variable is set in 'config.status', edit 'config.status'
949 # (which will cause the Makefiles to be regenerated when you run 'make');
950 # (2) otherwise, pass the desired values on the 'make' command line.
951 $(am__recursive_targets):
952 @fail=; \
953 if $(am__make_keepgoing); then \
954 failcom='fail=yes'; \
955 else \
956 failcom='exit 1'; \
957 fi; \
866958 dot_seen=no; \
867959 target=`echo $@ | sed s/-recursive//`; \
868 list='$(SUBDIRS)'; for subdir in $$list; do \
960 case "$@" in \
961 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
962 *) list='$(SUBDIRS)' ;; \
963 esac; \
964 for subdir in $$list; do \
869965 echo "Making $$target in $$subdir"; \
870966 if test "$$subdir" = "."; then \
871967 dot_seen=yes; \
880976 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
881977 fi; test -z "$$fail"
882978
883 $(RECURSIVE_CLEAN_TARGETS):
884 @fail= failcom='exit 1'; \
885 for f in x $$MAKEFLAGS; do \
886 case $$f in \
887 *=* | --[!k]*);; \
888 *k*) failcom='fail=yes';; \
889 esac; \
890 done; \
891 dot_seen=no; \
892 case "$@" in \
893 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
894 *) list='$(SUBDIRS)' ;; \
895 esac; \
896 rev=''; for subdir in $$list; do \
897 if test "$$subdir" = "."; then :; else \
898 rev="$$subdir $$rev"; \
899 fi; \
900 done; \
901 rev="$$rev ."; \
902 target=`echo $@ | sed s/-recursive//`; \
903 for subdir in $$rev; do \
904 echo "Making $$target in $$subdir"; \
905 if test "$$subdir" = "."; then \
906 local_target="$$target-am"; \
907 else \
908 local_target="$$target"; \
909 fi; \
910 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
911 || eval $$failcom; \
912 done && test -z "$$fail"
913 tags-recursive:
914 list='$(SUBDIRS)'; for subdir in $$list; do \
915 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
916 done
917 ctags-recursive:
918 list='$(SUBDIRS)'; for subdir in $$list; do \
919 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
920 done
921
922 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
923 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
924 unique=`for i in $$list; do \
925 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
926 done | \
927 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
928 END { if (nonempty) { for (i in files) print i; }; }'`; \
929 mkid -fID $$unique
930 tags: TAGS
931
932 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
933 $(TAGS_FILES) $(LISP)
979 ID: $(am__tagged_files)
980 $(am__define_uniq_tagged_files); mkid -fID $$unique
981 tags: tags-recursive
982 TAGS: tags
983
984 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
934985 set x; \
935986 here=`pwd`; \
936987 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
946997 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
947998 fi; \
948999 done; \
949 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
950 unique=`for i in $$list; do \
951 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
952 done | \
953 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
954 END { if (nonempty) { for (i in files) print i; }; }'`; \
1000 $(am__define_uniq_tagged_files); \
9551001 shift; \
9561002 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
9571003 test -n "$$unique" || unique=$$empty_fix; \
9631009 $$unique; \
9641010 fi; \
9651011 fi
966 ctags: CTAGS
967 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
968 $(TAGS_FILES) $(LISP)
969 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
970 unique=`for i in $$list; do \
971 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
972 done | \
973 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
974 END { if (nonempty) { for (i in files) print i; }; }'`; \
1012 ctags: ctags-recursive
1013
1014 CTAGS: ctags
1015 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1016 $(am__define_uniq_tagged_files); \
9751017 test -z "$(CTAGS_ARGS)$$unique" \
9761018 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
9771019 $$unique
9801022 here=`$(am__cd) $(top_builddir) && pwd` \
9811023 && $(am__cd) $(top_srcdir) \
9821024 && gtags -i $(GTAGS_ARGS) "$$here"
1025 cscope: cscope.files
1026 test ! -s cscope.files \
1027 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
1028 clean-cscope:
1029 -rm -f cscope.files
1030 cscope.files: clean-cscope cscopelist
1031 cscopelist: cscopelist-recursive
1032
1033 cscopelist-am: $(am__tagged_files)
1034 list='$(am__tagged_files)'; \
1035 case "$(srcdir)" in \
1036 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1037 *) sdir=$(subdir)/$(srcdir) ;; \
1038 esac; \
1039 for i in $$list; do \
1040 if test -f "$$i"; then \
1041 echo "$(subdir)/$$i"; \
1042 else \
1043 echo "$$sdir/$$i"; \
1044 fi; \
1045 done >> $(top_builddir)/cscope.files
9831046
9841047 distclean-tags:
9851048 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1049 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
9861050
9871051 distdir: $(DISTFILES)
9881052 $(am__remove_distdir)
10501114 || chmod -R a+r "$(distdir)"
10511115 dist-gzip: distdir
10521116 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1053 $(am__remove_distdir)
1117 $(am__post_remove_distdir)
10541118
10551119 dist-bzip2: distdir
10561120 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
1057 $(am__remove_distdir)
1121 $(am__post_remove_distdir)
10581122
10591123 dist-lzip: distdir
10601124 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
1061 $(am__remove_distdir)
1062
1063 dist-lzma: distdir
1064 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
1065 $(am__remove_distdir)
1125 $(am__post_remove_distdir)
10661126
10671127 dist-xz: distdir
10681128 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
1069 $(am__remove_distdir)
1129 $(am__post_remove_distdir)
10701130
10711131 dist-tarZ: distdir
10721132 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1073 $(am__remove_distdir)
1133 $(am__post_remove_distdir)
10741134
10751135 dist-shar: distdir
10761136 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1077 $(am__remove_distdir)
1137 $(am__post_remove_distdir)
10781138
10791139 dist-zip: distdir
10801140 -rm -f $(distdir).zip
10811141 zip -rq $(distdir).zip $(distdir)
1082 $(am__remove_distdir)
1083
1084 dist dist-all: distdir
1085 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1086 $(am__remove_distdir)
1142 $(am__post_remove_distdir)
1143
1144 dist dist-all:
1145 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
1146 $(am__post_remove_distdir)
10871147
10881148 # This target untars the dist file and tries a VPATH configuration. Then
10891149 # it guarantees that the distribution is self-contained by making another
10941154 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
10951155 *.tar.bz2*) \
10961156 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1097 *.tar.lzma*) \
1098 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
10991157 *.tar.lz*) \
11001158 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
11011159 *.tar.xz*) \
11071165 *.zip*) \
11081166 unzip $(distdir).zip ;;\
11091167 esac
1110 chmod -R a-w $(distdir); chmod u+w $(distdir)
1111 mkdir $(distdir)/_build
1112 mkdir $(distdir)/_inst
1168 chmod -R a-w $(distdir)
1169 chmod u+w $(distdir)
1170 mkdir $(distdir)/_build $(distdir)/_inst
11131171 chmod a-w $(distdir)
11141172 test -d $(distdir)/_build || exit 0; \
11151173 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
11411199 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
11421200 && cd "$$am__cwd" \
11431201 || exit 1
1144 $(am__remove_distdir)
1202 $(am__post_remove_distdir)
11451203 @(echo "$(distdir) archives ready for distribution: "; \
11461204 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
11471205 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
12881346 uninstall-am: uninstall-dist_binSCRIPTS uninstall-includeHEADERS \
12891347 uninstall-libLTLIBRARIES uninstall-pkgconfigDATA
12901348
1291 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
1292 ctags-recursive install install-am install-strip \
1293 tags-recursive
1294
1295 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1296 all all-am am--refresh check check-am clean clean-generic \
1349 .MAKE: $(am__recursive_targets) all check install install-am \
1350 install-strip
1351
1352 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1353 am--refresh check check-am clean clean-cscope clean-generic \
12971354 clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \
1298 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
1299 dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
1355 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
1356 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
13001357 distcheck distclean distclean-compile distclean-generic \
13011358 distclean-hdr distclean-libtool distclean-tags distcleancheck \
13021359 distdir distuninstallcheck dvi dvi-am html html-am info \
13091366 installcheck installcheck-am installdirs installdirs-am \
13101367 maintainer-clean maintainer-clean-generic mostlyclean \
13111368 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1312 pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
1369 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
13131370 uninstall-dist_binSCRIPTS uninstall-includeHEADERS \
13141371 uninstall-libLTLIBRARIES uninstall-pkgconfigDATA
13151372
276276 /* #undef _EVENT_HAVE_WORKING_KQUEUE */
277277
278278 /* Numeric representation of the version */
279 #define _EVENT_NUMERIC_VERSION 0x02001500
279 #define _EVENT_NUMERIC_VERSION 0x02001501
280280
281281 /* Name of package */
282282 #define _EVENT_PACKAGE "libevent"
333333 #define _EVENT_TIME_WITH_SYS_TIME 1
334334
335335 /* Version number of package */
336 #define _EVENT_VERSION "2.0.21-stable"
336 #define _EVENT_VERSION "2.0.21-stable-dev"
337337
338338 /* Define to appropriate substitue if compiler doesnt have __func__ */
339339 #define _EVENT___func__ __FUNCTION__
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.13.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1110 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1211 # PARTICULAR PURPOSE.
1312
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1616 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
1717 [m4_warning([this file was generated for autoconf 2.69.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
23 #
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
3027
3128 # AM_AUTOMAKE_VERSION(VERSION)
3229 # ----------------------------
3431 # generated from the m4 files accompanying Automake X.Y.
3532 # (This private macro should not be called outside this file.)
3633 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.11'
34 [am__api_version='1.13'
3835 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3936 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.11.6], [],
37 m4_if([$1], [1.13.3], [],
4138 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
4239 ])
4340
5350 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5451 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5552 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.11.6])dnl
53 [AM_AUTOMAKE_VERSION([1.13.3])dnl
5754 m4_ifndef([AC_AUTOCONF_VERSION],
5855 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5956 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
6057
6158 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6259
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
60 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
61 #
62 # This file is free software; the Free Software Foundation
63 # gives unlimited permission to copy and/or distribute it,
64 # with or without modifications, as long as this notice is preserved.
7065
7166 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
73 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
67 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
68 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
7469 #
7570 # Of course, Automake must honor this variable whenever it calls a
7671 # tool from the auxiliary directory. The problem is that $srcdir (and
8984 #
9085 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9186 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is `.', but things will broke when you
87 # harmless because $srcdir is '.', but things will broke when you
9388 # start a VPATH build or use an absolute $srcdir.
9489 #
9590 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
115110
116111 # AM_CONDITIONAL -*- Autoconf -*-
117112
118 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
119 # Free Software Foundation, Inc.
120 #
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
124
125 # serial 9
113 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
114 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
126118
127119 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
128120 # -------------------------------------
129121 # Define a conditional.
130122 AC_DEFUN([AM_CONDITIONAL],
131 [AC_PREREQ(2.52)dnl
132 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
133 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
123 [AC_PREREQ([2.52])dnl
124 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
125 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
134126 AC_SUBST([$1_TRUE])dnl
135127 AC_SUBST([$1_FALSE])dnl
136128 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
149141 Usually this means the macro was only invoked conditionally.]])
150142 fi])])
151143
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
154 #
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
158
159 # serial 12
160
161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
144 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
145 #
146 # This file is free software; the Free Software Foundation
147 # gives unlimited permission to copy and/or distribute it,
148 # with or without modifications, as long as this notice is preserved.
149
150
151 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
162152 # written in clear, in which case automake, when reading aclocal.m4,
163153 # will think it sees a *use*, and therefore will trigger all it's
164154 # C support machinery. Also note that it means that autoscan, seeing
168158 # _AM_DEPENDENCIES(NAME)
169159 # ----------------------
170160 # See how the compiler implements dependency checking.
171 # NAME is "CC", "CXX", "GCJ", or "OBJC".
161 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
172162 # We try a few techniques and use that to set a single cache variable.
173163 #
174164 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
181171 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
182172 AC_REQUIRE([AM_DEP_TRACK])dnl
183173
184 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
185 [$1], CXX, [depcc="$CXX" am_compiler_list=],
186 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
187 [$1], UPC, [depcc="$UPC" am_compiler_list=],
188 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
189 [depcc="$$1" am_compiler_list=])
174 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
175 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
176 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
177 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
178 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
179 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
180 [depcc="$$1" am_compiler_list=])
190181
191182 AC_CACHE_CHECK([dependency style of $depcc],
192183 [am_cv_$1_dependencies_compiler_type],
194185 # We make a subdir and do the tests there. Otherwise we can end up
195186 # making bogus files that we don't know about and never remove. For
196187 # instance it was reported that on HP-UX the gcc test will end up
197 # making a dummy file named `D' -- because `-MD' means `put the output
198 # in D'.
188 # making a dummy file named 'D' -- because '-MD' means "put the output
189 # in D".
199190 rm -rf conftest.dir
200191 mkdir conftest.dir
201192 # Copy depcomp to subdir because otherwise we won't find it if we're
235226 : > sub/conftest.c
236227 for i in 1 2 3 4 5 6; do
237228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
239 # Solaris 8's {/usr,}/bin/sh.
240 touch sub/conftst$i.h
229 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
230 # Solaris 10 /bin/sh.
231 echo '/* dummy */' > sub/conftst$i.h
241232 done
242233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
243234
244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
235 # We check with '-c' and '-o' for the sake of the "dashmstdout"
245236 # mode. It turns out that the SunPro C++ compiler does not properly
246 # handle `-M -o', and we need to detect this. Also, some Intel
247 # versions had trouble with output in subdirs
237 # handle '-M -o', and we need to detect this. Also, some Intel
238 # versions had trouble with output in subdirs.
248239 am__obj=sub/conftest.${OBJEXT-o}
249240 am__minus_obj="-o $am__obj"
250241 case $depmode in
253244 test "$am__universal" = false || continue
254245 ;;
255246 nosideeffect)
256 # after this tag, mechanisms are not by side-effect, so they'll
257 # only be used when explicitly requested
247 # After this tag, mechanisms are not by side-effect, so they'll
248 # only be used when explicitly requested.
258249 if test "x$enable_dependency_tracking" = xyes; then
259250 continue
260251 else
262253 fi
263254 ;;
264255 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
265 # This compiler won't grok `-c -o', but also, the minuso test has
256 # This compiler won't grok '-c -o', but also, the minuso test has
266257 # not run yet. These depmodes are late enough in the game, and
267258 # so weak that their functioning should not be impacted.
268259 am__obj=conftest.${OBJEXT-o}
310301 # AM_SET_DEPDIR
311302 # -------------
312303 # Choose a directory name for dependency files.
313 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
304 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
314305 AC_DEFUN([AM_SET_DEPDIR],
315306 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
316307 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
320311 # AM_DEP_TRACK
321312 # ------------
322313 AC_DEFUN([AM_DEP_TRACK],
323 [AC_ARG_ENABLE(dependency-tracking,
324 [ --disable-dependency-tracking speeds up one-time build
325 --enable-dependency-tracking do not reject slow dependency extractors])
314 [AC_ARG_ENABLE([dependency-tracking], [dnl
315 AS_HELP_STRING(
316 [--enable-dependency-tracking],
317 [do not reject slow dependency extractors])
318 AS_HELP_STRING(
319 [--disable-dependency-tracking],
320 [speeds up one-time build])])
326321 if test "x$enable_dependency_tracking" != xno; then
327322 am_depcomp="$ac_aux_dir/depcomp"
328323 AMDEPBACKSLASH='\'
337332
338333 # Generate code to set up dependency tracking. -*- Autoconf -*-
339334
340 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
341 # Free Software Foundation, Inc.
342 #
343 # This file is free software; the Free Software Foundation
344 # gives unlimited permission to copy and/or distribute it,
345 # with or without modifications, as long as this notice is preserved.
346
347 #serial 5
335 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
336 #
337 # This file is free software; the Free Software Foundation
338 # gives unlimited permission to copy and/or distribute it,
339 # with or without modifications, as long as this notice is preserved.
340
348341
349342 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350343 # ------------------------------
351344 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352345 [{
353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
346 # Older Autoconf quotes --file arguments for eval, but not when files
354347 # are listed without --file. Let's play safe and only enable the eval
355348 # if we detect the quoting.
356349 case $CONFIG_FILES in
363356 # Strip MF so we end up with the name of the file.
364357 mf=`echo "$mf" | sed -e 's/:.*$//'`
365358 # Check whether this is an Automake generated Makefile or not.
366 # We used to match only the files named `Makefile.in', but
359 # We used to match only the files named 'Makefile.in', but
367360 # some people rename them; so instead we look at the file content.
368361 # Grep'ing the first line is not enough: some people post-process
369362 # each Makefile.in and add a new line on top of each file to say so.
375368 continue
376369 fi
377370 # Extract the definition of DEPDIR, am__include, and am__quote
378 # from the Makefile without running `make'.
371 # from the Makefile without running 'make'.
379372 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380373 test -z "$DEPDIR" && continue
381374 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
375 test -z "$am__include" && continue
383376 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384 # When using ansi2knr, U may be empty or an underscore; expand it
385 U=`sed -n 's/^U = //p' < "$mf"`
386377 # Find all dependency output files, they are included files with
387378 # $(DEPDIR) in their names. We invoke sed twice because it is the
388379 # simplest approach to changing $(DEPDIR) to its actual value in the
389380 # expansion.
390381 for file in `sed -n "
391382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
393384 # Make sure the directory exists.
394385 test -f "$dirpart/$file" && continue
395386 fdir=`AS_DIRNAME(["$file"])`
407398 # This macro should only be invoked once -- use via AC_REQUIRE.
408399 #
409400 # This code is only required when automatic dependency tracking
410 # is enabled. FIXME. This creates each `.P' file that we will
401 # is enabled. FIXME. This creates each '.P' file that we will
411402 # need in order to bootstrap the dependency handling code.
412403 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
413404 [AC_CONFIG_COMMANDS([depfiles],
415406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
416407 ])
417408
418 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
419 # Free Software Foundation, Inc.
420 #
421 # This file is free software; the Free Software Foundation
422 # gives unlimited permission to copy and/or distribute it,
423 # with or without modifications, as long as this notice is preserved.
424
425 # serial 8
426
427 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
428 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
429
430409 # Do all the work for Automake. -*- Autoconf -*-
431410
432 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
433 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
434 #
435 # This file is free software; the Free Software Foundation
436 # gives unlimited permission to copy and/or distribute it,
437 # with or without modifications, as long as this notice is preserved.
438
439 # serial 16
411 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
412 #
413 # This file is free software; the Free Software Foundation
414 # gives unlimited permission to copy and/or distribute it,
415 # with or without modifications, as long as this notice is preserved.
440416
441417 # This macro actually does too much. Some checks are only needed if
442418 # your package does certain things. But this isn't really a big deal.
453429 # arguments mandatory, and then we can depend on a new Autoconf
454430 # release and drop the old call support.
455431 AC_DEFUN([AM_INIT_AUTOMAKE],
456 [AC_PREREQ([2.62])dnl
432 [AC_PREREQ([2.65])dnl
457433 dnl Autoconf wants to disallow AM_ names. We explicitly allow
458434 dnl the ones we care about.
459435 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
482458 # Define the identity of the package.
483459 dnl Distinguish between old-style and new-style calls.
484460 m4_ifval([$2],
485 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
461 [AC_DIAGNOSE([obsolete],
462 [$0: two- and three-arguments forms are deprecated.])
463 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
486464 AC_SUBST([PACKAGE], [$1])dnl
487465 AC_SUBST([VERSION], [$2])],
488466 [_AM_SET_OPTIONS([$1])dnl
489467 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
490 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
468 m4_if(
469 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
470 [ok:ok],,
491471 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
492472 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
493473 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
494474
495475 _AM_IF_OPTION([no-define],,
496 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
497 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
476 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
477 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
498478
499479 # Some tools Automake needs.
500480 AC_REQUIRE([AM_SANITY_CHECK])dnl
501481 AC_REQUIRE([AC_ARG_PROGRAM])dnl
502 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
503 AM_MISSING_PROG(AUTOCONF, autoconf)
504 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
505 AM_MISSING_PROG(AUTOHEADER, autoheader)
506 AM_MISSING_PROG(MAKEINFO, makeinfo)
482 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
483 AM_MISSING_PROG([AUTOCONF], [autoconf])
484 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
485 AM_MISSING_PROG([AUTOHEADER], [autoheader])
486 AM_MISSING_PROG([MAKEINFO], [makeinfo])
507487 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
508488 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
509 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
489 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
490 # For better backward compatibility. To be removed once Automake 1.9.x
491 # dies out for good. For more background, see:
492 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
493 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
494 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
510495 # We need awk for the "check" target. The system "awk" is bad on
511496 # some platforms.
512497 AC_REQUIRE([AC_PROG_AWK])dnl
517502 [_AM_PROG_TAR([v7])])])
518503 _AM_IF_OPTION([no-dependencies],,
519504 [AC_PROVIDE_IFELSE([AC_PROG_CC],
520 [_AM_DEPENDENCIES(CC)],
521 [define([AC_PROG_CC],
522 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
505 [_AM_DEPENDENCIES([CC])],
506 [m4_define([AC_PROG_CC],
507 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
523508 AC_PROVIDE_IFELSE([AC_PROG_CXX],
524 [_AM_DEPENDENCIES(CXX)],
525 [define([AC_PROG_CXX],
526 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
509 [_AM_DEPENDENCIES([CXX])],
510 [m4_define([AC_PROG_CXX],
511 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
527512 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
528 [_AM_DEPENDENCIES(OBJC)],
529 [define([AC_PROG_OBJC],
530 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
531 ])
532 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
533 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
534 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
535 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
513 [_AM_DEPENDENCIES([OBJC])],
514 [m4_define([AC_PROG_OBJC],
515 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
516 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
517 [_AM_DEPENDENCIES([OBJCXX])],
518 [m4_define([AC_PROG_OBJCXX],
519 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
520 ])
521 AC_REQUIRE([AM_SILENT_RULES])dnl
522 dnl The testsuite driver may need to know about EXEEXT, so add the
523 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
524 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
536525 AC_CONFIG_COMMANDS_PRE(dnl
537526 [m4_provide_if([_AM_COMPILER_EXEEXT],
538527 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
539528 ])
540529
541 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
542531 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
543532 dnl mangled by Autoconf and run in a shell conditional statement.
544533 m4_define([_AC_COMPILER_EXEEXT],
566555 done
567556 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
568557
569 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
570 # Inc.
571 #
572 # This file is free software; the Free Software Foundation
573 # gives unlimited permission to copy and/or distribute it,
574 # with or without modifications, as long as this notice is preserved.
575
576 # serial 1
558 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
577563
578564 # AM_PROG_INSTALL_SH
579565 # ------------------
588574 install_sh="\${SHELL} $am_aux_dir/install-sh"
589575 esac
590576 fi
591 AC_SUBST(install_sh)])
592
593 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
594 #
595 # This file is free software; the Free Software Foundation
596 # gives unlimited permission to copy and/or distribute it,
597 # with or without modifications, as long as this notice is preserved.
598
599 # serial 2
577 AC_SUBST([install_sh])])
578
579 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
580 #
581 # This file is free software; the Free Software Foundation
582 # gives unlimited permission to copy and/or distribute it,
583 # with or without modifications, as long as this notice is preserved.
600584
601585 # Check whether the underlying file-system supports filenames
602586 # with a leading dot. For instance MS-DOS doesn't.
613597
614598 # Check to see how 'make' treats includes. -*- Autoconf -*-
615599
616 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
617 #
618 # This file is free software; the Free Software Foundation
619 # gives unlimited permission to copy and/or distribute it,
620 # with or without modifications, as long as this notice is preserved.
621
622 # serial 4
600 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
601 #
602 # This file is free software; the Free Software Foundation
603 # gives unlimited permission to copy and/or distribute it,
604 # with or without modifications, as long as this notice is preserved.
623605
624606 # AM_MAKE_INCLUDE()
625607 # -----------------
638620 _am_result=none
639621 # First try GNU make style include.
640622 echo "include confinc" > confmf
641 # Ignore all kinds of additional output from `make'.
623 # Ignore all kinds of additional output from 'make'.
642624 case `$am_make -s -f confmf 2> /dev/null` in #(
643625 *the\ am__doit\ target*)
644626 am__include=include
663645 rm -f confinc confmf
664646 ])
665647
666 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
667 # Free Software Foundation, Inc.
668 #
669 # This file is free software; the Free Software Foundation
670 # gives unlimited permission to copy and/or distribute it,
671 # with or without modifications, as long as this notice is preserved.
672
673 # serial 6
648 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
649 #
650 # This file is free software; the Free Software Foundation
651 # gives unlimited permission to copy and/or distribute it,
652 # with or without modifications, as long as this notice is preserved.
674653
675654 # AM_PROG_CC_C_O
676655 # --------------
700679
701680 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
702681
703 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
704 # Free Software Foundation, Inc.
705 #
706 # This file is free software; the Free Software Foundation
707 # gives unlimited permission to copy and/or distribute it,
708 # with or without modifications, as long as this notice is preserved.
709
710 # serial 6
682 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
683 #
684 # This file is free software; the Free Software Foundation
685 # gives unlimited permission to copy and/or distribute it,
686 # with or without modifications, as long as this notice is preserved.
711687
712688 # AM_MISSING_PROG(NAME, PROGRAM)
713689 # ------------------------------
716692 $1=${$1-"${am_missing_run}$2"}
717693 AC_SUBST($1)])
718694
719
720695 # AM_MISSING_HAS_RUN
721696 # ------------------
722 # Define MISSING if not defined so far and test if it supports --run.
723 # If it does, set am_missing_run to use it, otherwise, to nothing.
697 # Define MISSING if not defined so far and test if it is modern enough.
698 # If it is, set am_missing_run to use it, otherwise, to nothing.
724699 AC_DEFUN([AM_MISSING_HAS_RUN],
725700 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
726701 AC_REQUIRE_AUX_FILE([missing])dnl
733708 esac
734709 fi
735710 # Use eval to expand $SHELL
736 if eval "$MISSING --run true"; then
737 am_missing_run="$MISSING --run "
711 if eval "$MISSING --is-lightweight"; then
712 am_missing_run="$MISSING "
738713 else
739714 am_missing_run=
740 AC_MSG_WARN([`missing' script is too old or missing])
741 fi
742 ])
743
744 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
745 # Inc.
746 #
747 # This file is free software; the Free Software Foundation
748 # gives unlimited permission to copy and/or distribute it,
749 # with or without modifications, as long as this notice is preserved.
750
751 # serial 1
752
753 # AM_PROG_MKDIR_P
754 # ---------------
755 # Check for `mkdir -p'.
756 AC_DEFUN([AM_PROG_MKDIR_P],
757 [AC_PREREQ([2.60])dnl
758 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
759 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
760 dnl while keeping a definition of mkdir_p for backward compatibility.
761 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
762 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
763 dnl Makefile.ins that do not define MKDIR_P, so we do our own
764 dnl adjustment using top_builddir (which is defined more often than
765 dnl MKDIR_P).
766 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
767 case $mkdir_p in
768 [[\\/$]]* | ?:[[\\/]]*) ;;
769 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
770 esac
715 AC_MSG_WARN(['missing' script is too old or missing])
716 fi
771717 ])
772718
773719 # Helper functions for option handling. -*- Autoconf -*-
774720
775 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
776 # Foundation, Inc.
777 #
778 # This file is free software; the Free Software Foundation
779 # gives unlimited permission to copy and/or distribute it,
780 # with or without modifications, as long as this notice is preserved.
781
782 # serial 5
721 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
722 #
723 # This file is free software; the Free Software Foundation
724 # gives unlimited permission to copy and/or distribute it,
725 # with or without modifications, as long as this notice is preserved.
783726
784727 # _AM_MANGLE_OPTION(NAME)
785728 # -----------------------
790733 # --------------------
791734 # Set option NAME. Presently that only means defining a flag for this option.
792735 AC_DEFUN([_AM_SET_OPTION],
793 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
736 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
794737
795738 # _AM_SET_OPTIONS(OPTIONS)
796739 # ------------------------
806749
807750 # Check to make sure that the build environment is sane. -*- Autoconf -*-
808751
809 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
810 # Free Software Foundation, Inc.
811 #
812 # This file is free software; the Free Software Foundation
813 # gives unlimited permission to copy and/or distribute it,
814 # with or without modifications, as long as this notice is preserved.
815
816 # serial 5
752 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
753 #
754 # This file is free software; the Free Software Foundation
755 # gives unlimited permission to copy and/or distribute it,
756 # with or without modifications, as long as this notice is preserved.
817757
818758 # AM_SANITY_CHECK
819759 # ---------------
820760 AC_DEFUN([AM_SANITY_CHECK],
821761 [AC_MSG_CHECKING([whether build environment is sane])
822 # Just in case
823 sleep 1
824 echo timestamp > conftest.file
825762 # Reject unsafe characters in $srcdir or the absolute working directory
826763 # name. Accept space and tab only in the latter.
827764 am_lf='
832769 esac
833770 case $srcdir in
834771 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
835 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
772 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
836773 esac
837774
838 # Do `set' in a subshell so we don't clobber the current shell's
775 # Do 'set' in a subshell so we don't clobber the current shell's
839776 # arguments. Must try -L first in case configure is actually a
840777 # symlink; some systems play weird games with the mod time of symlinks
841778 # (eg FreeBSD returns the mod time of the symlink's containing
842779 # directory).
843780 if (
844 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
845 if test "$[*]" = "X"; then
846 # -L didn't work.
847 set X `ls -t "$srcdir/configure" conftest.file`
848 fi
849 rm -f conftest.file
850 if test "$[*]" != "X $srcdir/configure conftest.file" \
851 && test "$[*]" != "X conftest.file $srcdir/configure"; then
852
853 # If neither matched, then we have a broken ls. This can happen
854 # if, for instance, CONFIG_SHELL is bash and it inherits a
855 # broken ls alias from the environment. This has actually
856 # happened. Such a system could not be considered "sane".
857 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
858 alias in your environment])
859 fi
860
781 am_has_slept=no
782 for am_try in 1 2; do
783 echo "timestamp, slept: $am_has_slept" > conftest.file
784 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
785 if test "$[*]" = "X"; then
786 # -L didn't work.
787 set X `ls -t "$srcdir/configure" conftest.file`
788 fi
789 if test "$[*]" != "X $srcdir/configure conftest.file" \
790 && test "$[*]" != "X conftest.file $srcdir/configure"; then
791
792 # If neither matched, then we have a broken ls. This can happen
793 # if, for instance, CONFIG_SHELL is bash and it inherits a
794 # broken ls alias from the environment. This has actually
795 # happened. Such a system could not be considered "sane".
796 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
797 alias in your environment])
798 fi
799 if test "$[2]" = conftest.file || test $am_try -eq 2; then
800 break
801 fi
802 # Just in case.
803 sleep 1
804 am_has_slept=yes
805 done
861806 test "$[2]" = conftest.file
862807 )
863808 then
867812 AC_MSG_ERROR([newly created file is older than distributed files!
868813 Check your system clock])
869814 fi
870 AC_MSG_RESULT(yes)])
871
872 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
873 #
874 # This file is free software; the Free Software Foundation
875 # gives unlimited permission to copy and/or distribute it,
876 # with or without modifications, as long as this notice is preserved.
877
878 # serial 1
815 AC_MSG_RESULT([yes])
816 # If we didn't sleep, we still need to ensure time stamps of config.status and
817 # generated files are strictly newer.
818 am_sleep_pid=
819 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
820 ( sleep 1 ) &
821 am_sleep_pid=$!
822 fi
823 AC_CONFIG_COMMANDS_PRE(
824 [AC_MSG_CHECKING([that generated files are newer than configure])
825 if test -n "$am_sleep_pid"; then
826 # Hide warnings about reused PIDs.
827 wait $am_sleep_pid 2>/dev/null
828 fi
829 AC_MSG_RESULT([done])])
830 rm -f conftest.file
831 ])
832
833 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
834 #
835 # This file is free software; the Free Software Foundation
836 # gives unlimited permission to copy and/or distribute it,
837 # with or without modifications, as long as this notice is preserved.
838
839 # AM_SILENT_RULES([DEFAULT])
840 # --------------------------
841 # Enable less verbose build rules; with the default set to DEFAULT
842 # ("yes" being less verbose, "no" or empty being verbose).
843 AC_DEFUN([AM_SILENT_RULES],
844 [AC_ARG_ENABLE([silent-rules], [dnl
845 AS_HELP_STRING(
846 [--enable-silent-rules],
847 [less verbose build output (undo: "make V=1")])
848 AS_HELP_STRING(
849 [--disable-silent-rules],
850 [verbose build output (undo: "make V=0")])dnl
851 ])
852 case $enable_silent_rules in @%:@ (((
853 yes) AM_DEFAULT_VERBOSITY=0;;
854 no) AM_DEFAULT_VERBOSITY=1;;
855 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
856 esac
857 dnl
858 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
859 dnl do not support nested variable expansions.
860 dnl See automake bug#9928 and bug#10237.
861 am_make=${MAKE-make}
862 AC_CACHE_CHECK([whether $am_make supports nested variables],
863 [am_cv_make_support_nested_variables],
864 [if AS_ECHO([['TRUE=$(BAR$(V))
865 BAR0=false
866 BAR1=true
867 V=1
868 am__doit:
869 @$(TRUE)
870 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
871 am_cv_make_support_nested_variables=yes
872 else
873 am_cv_make_support_nested_variables=no
874 fi])
875 if test $am_cv_make_support_nested_variables = yes; then
876 dnl Using '$V' instead of '$(V)' breaks IRIX make.
877 AM_V='$(V)'
878 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
879 else
880 AM_V=$AM_DEFAULT_VERBOSITY
881 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
882 fi
883 AC_SUBST([AM_V])dnl
884 AM_SUBST_NOTMAKE([AM_V])dnl
885 AC_SUBST([AM_DEFAULT_V])dnl
886 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
887 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
888 AM_BACKSLASH='\'
889 AC_SUBST([AM_BACKSLASH])dnl
890 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
891 ])
892
893 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
894 #
895 # This file is free software; the Free Software Foundation
896 # gives unlimited permission to copy and/or distribute it,
897 # with or without modifications, as long as this notice is preserved.
879898
880899 # AM_PROG_INSTALL_STRIP
881900 # ---------------------
882 # One issue with vendor `install' (even GNU) is that you can't
901 # One issue with vendor 'install' (even GNU) is that you can't
883902 # specify the program used to strip binaries. This is especially
884903 # annoying in cross-compiling environments, where the build's strip
885904 # is unlikely to handle the host's binaries.
886905 # Fortunately install-sh will honor a STRIPPROG variable, so we
887 # always use install-sh in `make install-strip', and initialize
906 # always use install-sh in "make install-strip", and initialize
888907 # STRIPPROG with the value of the STRIP variable (set by the user).
889908 AC_DEFUN([AM_PROG_INSTALL_STRIP],
890909 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
891 # Installed binaries are usually stripped using `strip' when the user
892 # run `make install-strip'. However `strip' might not be the right
910 # Installed binaries are usually stripped using 'strip' when the user
911 # run "make install-strip". However 'strip' might not be the right
893912 # tool to use in cross-compilation environments, therefore Automake
894 # will honor the `STRIP' environment variable to overrule this program.
895 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
913 # will honor the 'STRIP' environment variable to overrule this program.
914 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
896915 if test "$cross_compiling" != no; then
897916 AC_CHECK_TOOL([STRIP], [strip], :)
898917 fi
899918 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
900919 AC_SUBST([INSTALL_STRIP_PROGRAM])])
901920
902 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
903 #
904 # This file is free software; the Free Software Foundation
905 # gives unlimited permission to copy and/or distribute it,
906 # with or without modifications, as long as this notice is preserved.
907
908 # serial 3
921 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
922 #
923 # This file is free software; the Free Software Foundation
924 # gives unlimited permission to copy and/or distribute it,
925 # with or without modifications, as long as this notice is preserved.
909926
910927 # _AM_SUBST_NOTMAKE(VARIABLE)
911928 # ---------------------------
920937
921938 # Check how to create a tarball. -*- Autoconf -*-
922939
923 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
924 #
925 # This file is free software; the Free Software Foundation
926 # gives unlimited permission to copy and/or distribute it,
927 # with or without modifications, as long as this notice is preserved.
928
929 # serial 2
940 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
941 #
942 # This file is free software; the Free Software Foundation
943 # gives unlimited permission to copy and/or distribute it,
944 # with or without modifications, as long as this notice is preserved.
930945
931946 # _AM_PROG_TAR(FORMAT)
932947 # --------------------
933948 # Check how to create a tarball in format FORMAT.
934 # FORMAT should be one of `v7', `ustar', or `pax'.
949 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
935950 #
936951 # Substitute a variable $(am__tar) that is a command
937952 # writing to stdout a FORMAT-tarball containing the directory
941956 # Substitute a variable $(am__untar) that extract such
942957 # a tarball read from stdin.
943958 # $(am__untar) < result.tar
959 #
944960 AC_DEFUN([_AM_PROG_TAR],
945961 [# Always define AMTAR for backward compatibility. Yes, it's still used
946962 # in the wild :-( We should find a proper way to deprecate it ...
947963 AC_SUBST([AMTAR], ['$${TAR-tar}'])
964
965 # We'll loop over all known methods to create a tar archive until one works.
966 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
967
948968 m4_if([$1], [v7],
949 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
950 [m4_case([$1], [ustar],, [pax],,
951 [m4_fatal([Unknown tar format])])
952 AC_MSG_CHECKING([how to create a $1 tar archive])
953 # Loop over all known methods to create a tar archive until one works.
954 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
955 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
956 # Do not fold the above two line into one, because Tru64 sh and
957 # Solaris sh will not grok spaces in the rhs of `-'.
958 for _am_tool in $_am_tools
959 do
960 case $_am_tool in
961 gnutar)
962 for _am_tar in tar gnutar gtar;
963 do
964 AM_RUN_LOG([$_am_tar --version]) && break
965 done
966 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
967 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
968 am__untar="$_am_tar -xf -"
969 ;;
970 plaintar)
971 # Must skip GNU tar: if it does not support --format= it doesn't create
972 # ustar tarball either.
973 (tar --version) >/dev/null 2>&1 && continue
974 am__tar='tar chf - "$$tardir"'
975 am__tar_='tar chf - "$tardir"'
976 am__untar='tar xf -'
977 ;;
978 pax)
979 am__tar='pax -L -x $1 -w "$$tardir"'
980 am__tar_='pax -L -x $1 -w "$tardir"'
981 am__untar='pax -r'
982 ;;
983 cpio)
984 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
985 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
986 am__untar='cpio -i -H $1 -d'
987 ;;
988 none)
989 am__tar=false
990 am__tar_=false
991 am__untar=false
992 ;;
993 esac
994
995 # If the value was cached, stop now. We just wanted to have am__tar
996 # and am__untar set.
997 test -n "${am_cv_prog_tar_$1}" && break
998
999 # tar/untar a dummy directory, and stop if the command works
969 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
970
971 [m4_case([$1],
972 [ustar],
973 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
974 # There is notably a 21 bits limit for the UID and the GID. In fact,
975 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
976 # and bug#13588).
977 am_max_uid=2097151 # 2^21 - 1
978 am_max_gid=$am_max_uid
979 # The $UID and $GID variables are not portable, so we need to resort
980 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
981 # below are definitely unexpected, so allow the users to see them
982 # (that is, avoid stderr redirection).
983 am_uid=`id -u || echo unknown`
984 am_gid=`id -g || echo unknown`
985 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
986 if test $am_uid -le $am_max_uid; then
987 AC_MSG_RESULT([yes])
988 else
989 AC_MSG_RESULT([no])
990 _am_tools=none
991 fi
992 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
993 if test $am_gid -le $am_max_gid; then
994 AC_MSG_RESULT([yes])
995 else
996 AC_MSG_RESULT([no])
997 _am_tools=none
998 fi],
999
1000 [pax],
1001 [],
1002
1003 [m4_fatal([Unknown tar format])])
1004
1005 AC_MSG_CHECKING([how to create a $1 tar archive])
1006
1007 # Go ahead even if we have the value already cached. We do so because we
1008 # need to set the values for the 'am__tar' and 'am__untar' variables.
1009 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1010
1011 for _am_tool in $_am_tools; do
1012 case $_am_tool in
1013 gnutar)
1014 for _am_tar in tar gnutar gtar; do
1015 AM_RUN_LOG([$_am_tar --version]) && break
1016 done
1017 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1018 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1019 am__untar="$_am_tar -xf -"
1020 ;;
1021 plaintar)
1022 # Must skip GNU tar: if it does not support --format= it doesn't create
1023 # ustar tarball either.
1024 (tar --version) >/dev/null 2>&1 && continue
1025 am__tar='tar chf - "$$tardir"'
1026 am__tar_='tar chf - "$tardir"'
1027 am__untar='tar xf -'
1028 ;;
1029 pax)
1030 am__tar='pax -L -x $1 -w "$$tardir"'
1031 am__tar_='pax -L -x $1 -w "$tardir"'
1032 am__untar='pax -r'
1033 ;;
1034 cpio)
1035 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1036 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1037 am__untar='cpio -i -H $1 -d'
1038 ;;
1039 none)
1040 am__tar=false
1041 am__tar_=false
1042 am__untar=false
1043 ;;
1044 esac
1045
1046 # If the value was cached, stop now. We just wanted to have am__tar
1047 # and am__untar set.
1048 test -n "${am_cv_prog_tar_$1}" && break
1049
1050 # tar/untar a dummy directory, and stop if the command works.
1051 rm -rf conftest.dir
1052 mkdir conftest.dir
1053 echo GrepMe > conftest.dir/file
1054 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1055 rm -rf conftest.dir
1056 if test -s conftest.tar; then
1057 AM_RUN_LOG([$am__untar <conftest.tar])
1058 AM_RUN_LOG([cat conftest.dir/file])
1059 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1060 fi
1061 done
10001062 rm -rf conftest.dir
1001 mkdir conftest.dir
1002 echo GrepMe > conftest.dir/file
1003 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1004 rm -rf conftest.dir
1005 if test -s conftest.tar; then
1006 AM_RUN_LOG([$am__untar <conftest.tar])
1007 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1008 fi
1009 done
1010 rm -rf conftest.dir
1011
1012 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1013 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1063
1064 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1065 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1066
10141067 AC_SUBST([am__tar])
10151068 AC_SUBST([am__untar])
10161069 ]) # _AM_PROG_TAR
10171070
1071 m4_include([m4/ac_backport_259_ssizet.m4])
10181072 m4_include([m4/acx_pthread.m4])
10191073 m4_include([m4/libtool.m4])
10201074 m4_include([m4/ltoptions.m4])
514514
515515 BEV_LOCK(bev);
516516 rv = bev_p->dns_error;
517 BEV_LOCK(bev);
517 BEV_UNLOCK(bev);
518518
519519 return rv;
520520 }
0 /* config.h.in. Generated from configure.in by autoheader. */
0 /* config.h.in. Generated from configure.ac by autoheader. */
11
22 /* Define if libevent should build without support for a debug mode */
33 #undef DISABLE_DEBUG_MODE
693693 EGREP
694694 GREP
695695 CPP
696 SED
696697 LN_S
697 SED
698698 am__fastdepCC_FALSE
699699 am__fastdepCC_TRUE
700700 CCDEPMODE
720720 build_vendor
721721 build_cpu
722722 build
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
723727 am__untar
724728 am__tar
725729 AMTAR
784788 ac_subst_files=''
785789 ac_user_opts='
786790 enable_option_checking
791 enable_silent_rules
787792 enable_dependency_tracking
788793 enable_gcc_warnings
789794 enable_thread_support
14261431 --disable-option-checking ignore unrecognized --enable/--with options
14271432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14281433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --disable-dependency-tracking speeds up one-time build
1430 --enable-dependency-tracking do not reject slow dependency extractors
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
14311440 --enable-gcc-warnings enable verbose warnings with GCC
14321441 --disable-thread-support
14331442 disable support for threading
25892598
25902599
25912600
2592 am__api_version='1.11'
2601 am__api_version='1.13'
25932602
25942603 ac_aux_dir=
25952604 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27152724
27162725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
27172726 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Just in case
2719 sleep 1
2720 echo timestamp > conftest.file
27212727 # Reject unsafe characters in $srcdir or the absolute working directory
27222728 # name. Accept space and tab only in the latter.
27232729 am_lf='
27282734 esac
27292735 case $srcdir in
27302736 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2731 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2737 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
27322738 esac
27332739
2734 # Do `set' in a subshell so we don't clobber the current shell's
2740 # Do 'set' in a subshell so we don't clobber the current shell's
27352741 # arguments. Must try -L first in case configure is actually a
27362742 # symlink; some systems play weird games with the mod time of symlinks
27372743 # (eg FreeBSD returns the mod time of the symlink's containing
27382744 # directory).
27392745 if (
2740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2742 # -L didn't work.
2743 set X `ls -t "$srcdir/configure" conftest.file`
2744 fi
2745 rm -f conftest.file
2746 if test "$*" != "X $srcdir/configure conftest.file" \
2747 && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749 # If neither matched, then we have a broken ls. This can happen
2750 # if, for instance, CONFIG_SHELL is bash and it inherits a
2751 # broken ls alias from the environment. This has actually
2752 # happened. Such a system could not be considered "sane".
2753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2755 fi
2756
2746 am_has_slept=no
2747 for am_try in 1 2; do
2748 echo "timestamp, slept: $am_has_slept" > conftest.file
2749 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2750 if test "$*" = "X"; then
2751 # -L didn't work.
2752 set X `ls -t "$srcdir/configure" conftest.file`
2753 fi
2754 if test "$*" != "X $srcdir/configure conftest.file" \
2755 && test "$*" != "X conftest.file $srcdir/configure"; then
2756
2757 # If neither matched, then we have a broken ls. This can happen
2758 # if, for instance, CONFIG_SHELL is bash and it inherits a
2759 # broken ls alias from the environment. This has actually
2760 # happened. Such a system could not be considered "sane".
2761 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2762 alias in your environment" "$LINENO" 5
2763 fi
2764 if test "$2" = conftest.file || test $am_try -eq 2; then
2765 break
2766 fi
2767 # Just in case.
2768 sleep 1
2769 am_has_slept=yes
2770 done
27572771 test "$2" = conftest.file
27582772 )
27592773 then
27652779 fi
27662780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27672781 $as_echo "yes" >&6; }
2782 # If we didn't sleep, we still need to ensure time stamps of config.status and
2783 # generated files are strictly newer.
2784 am_sleep_pid=
2785 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2786 ( sleep 1 ) &
2787 am_sleep_pid=$!
2788 fi
2789
2790 rm -f conftest.file
2791
27682792 test "$program_prefix" != NONE &&
27692793 program_transform_name="s&^&$program_prefix&;$program_transform_name"
27702794 # Use a double $ so make ignores it.
27872811 esac
27882812 fi
27892813 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2814 if eval "$MISSING --is-lightweight"; then
2815 am_missing_run="$MISSING "
27922816 else
27932817 am_missing_run=
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2795 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2819 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27962820 fi
27972821
27982822 if test x"${install_sh}" != xset; then
28042828 esac
28052829 fi
28062830
2807 # Installed binaries are usually stripped using `strip' when the user
2808 # run `make install-strip'. However `strip' might not be the right
2831 # Installed binaries are usually stripped using 'strip' when the user
2832 # run "make install-strip". However 'strip' might not be the right
28092833 # tool to use in cross-compilation environments, therefore Automake
2810 # will honor the `STRIP' environment variable to overrule this program.
2834 # will honor the 'STRIP' environment variable to overrule this program.
28112835 if test "$cross_compiling" != no; then
28122836 if test -n "$ac_tool_prefix"; then
28132837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29462970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
29472971 $as_echo "$MKDIR_P" >&6; }
29482972
2949 mkdir_p="$MKDIR_P"
2950 case $mkdir_p in
2951 [\\/$]* | ?:[\\/]*) ;;
2952 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2953 esac
2954
29552973 for ac_prog in gawk mawk nawk awk
29562974 do
29572975 # Extract the first word of "$ac_prog", so it can be a program name with args.
30343052 fi
30353053 rmdir .tst 2>/dev/null
30363054
3055 # Check whether --enable-silent-rules was given.
3056 if test "${enable_silent_rules+set}" = set; then :
3057 enableval=$enable_silent_rules;
3058 fi
3059
3060 case $enable_silent_rules in # (((
3061 yes) AM_DEFAULT_VERBOSITY=0;;
3062 no) AM_DEFAULT_VERBOSITY=1;;
3063 *) AM_DEFAULT_VERBOSITY=1;;
3064 esac
3065 am_make=${MAKE-make}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3067 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3068 if ${am_cv_make_support_nested_variables+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if $as_echo 'TRUE=$(BAR$(V))
3072 BAR0=false
3073 BAR1=true
3074 V=1
3075 am__doit:
3076 @$(TRUE)
3077 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3078 am_cv_make_support_nested_variables=yes
3079 else
3080 am_cv_make_support_nested_variables=no
3081 fi
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3084 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3085 if test $am_cv_make_support_nested_variables = yes; then
3086 AM_V='$(V)'
3087 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3088 else
3089 AM_V=$AM_DEFAULT_VERBOSITY
3090 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3091 fi
3092 AM_BACKSLASH='\'
3093
30373094 if test "`cd $srcdir && pwd`" != "`pwd`"; then
30383095 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
30393096 # is not polluted with repeated "-I."
30553112
30563113
30573114 # Define the identity of the package.
3115
30583116 PACKAGE=libevent
3059 VERSION=2.0.21-stable
3117 VERSION=2.0.21-stable-dev
30603118
30613119
30623120 cat >>confdefs.h <<_ACEOF
30833141
30843142
30853143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3144
3145 # For better backward compatibility. To be removed once Automake 1.9.x
3146 # dies out for good. For more background, see:
3147 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3148 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3149 mkdir_p='$(MKDIR_P)'
30863150
30873151 # We need awk for the "check" target. The system "awk" is bad on
30883152 # some platforms.
30903154 # in the wild :-( We should find a proper way to deprecate it ...
30913155 AMTAR='$${TAR-tar}'
30923156
3157
3158 # We'll loop over all known methods to create a tar archive until one works.
3159 _am_tools='gnutar pax cpio none'
3160
30933161 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
30943162
30953163
30963164
30973165
30983166
3167
30993168 ac_config_headers="$ac_config_headers config.h"
31003169
31013170
3102 $as_echo "#define NUMERIC_VERSION 0x02001500" >>confdefs.h
3171 $as_echo "#define NUMERIC_VERSION 0x02001501" >>confdefs.h
31033172
31043173
31053174 if test "$prefix" = "NONE"; then
39924061 _am_result=none
39934062 # First try GNU make style include.
39944063 echo "include confinc" > confmf
3995 # Ignore all kinds of additional output from `make'.
4064 # Ignore all kinds of additional output from 'make'.
39964065 case `$am_make -s -f confmf 2> /dev/null` in #(
39974066 *the\ am__doit\ target*)
39984067 am__include=include
40484117 # We make a subdir and do the tests there. Otherwise we can end up
40494118 # making bogus files that we don't know about and never remove. For
40504119 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # in D'.
4120 # making a dummy file named 'D' -- because '-MD' means "put the output
4121 # in D".
40534122 rm -rf conftest.dir
40544123 mkdir conftest.dir
40554124 # Copy depcomp to subdir because otherwise we won't find it if we're
40844153 : > sub/conftest.c
40854154 for i in 1 2 3 4 5 6; do
40864155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4087 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4088 # Solaris 8's {/usr,}/bin/sh.
4089 touch sub/conftst$i.h
4156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4157 # Solaris 10 /bin/sh.
4158 echo '/* dummy */' > sub/conftst$i.h
40904159 done
40914160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
40924161
4093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4162 # We check with '-c' and '-o' for the sake of the "dashmstdout"
40944163 # mode. It turns out that the SunPro C++ compiler does not properly
4095 # handle `-M -o', and we need to detect this. Also, some Intel
4096 # versions had trouble with output in subdirs
4164 # handle '-M -o', and we need to detect this. Also, some Intel
4165 # versions had trouble with output in subdirs.
40974166 am__obj=sub/conftest.${OBJEXT-o}
40984167 am__minus_obj="-o $am__obj"
40994168 case $depmode in
41024171 test "$am__universal" = false || continue
41034172 ;;
41044173 nosideeffect)
4105 # after this tag, mechanisms are not by side-effect, so they'll
4106 # only be used when explicitly requested
4174 # After this tag, mechanisms are not by side-effect, so they'll
4175 # only be used when explicitly requested.
41074176 if test "x$enable_dependency_tracking" = xyes; then
41084177 continue
41094178 else
41114180 fi
41124181 ;;
41134182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4114 # This compiler won't grok `-c -o', but also, the minuso test has
4183 # This compiler won't grok '-c -o', but also, the minuso test has
41154184 # not run yet. These depmodes are late enough in the game, and
41164185 # so weak that their functioning should not be impacted.
41174186 am__obj=conftest.${OBJEXT-o}
42914360 fi
42924361
42934362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4365 $as_echo_n "checking whether ln -s works... " >&6; }
4366 LN_S=$as_ln_s
4367 if test "$LN_S" = "ln -s"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4372 $as_echo "no, using $LN_S" >&6; }
4373 fi
4374
4375 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4376
4377 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4378 # versions
42944379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
42954380 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
42964381 if ${ac_cv_path_SED+:} false; then :
43594444 $as_echo "$ac_cv_path_SED" >&6; }
43604445 SED="$ac_cv_path_SED"
43614446 rm -f conftest.sed
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4365 $as_echo_n "checking whether ln -s works... " >&6; }
4366 LN_S=$as_ln_s
4367 if test "$LN_S" = "ln -s"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4372 $as_echo "no, using $LN_S" >&6; }
4373 fi
4374
43754447
43764448
43774449
1523215304 LTLIBOBJS=$ac_ltlibobjs
1523315305
1523415306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15308 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15309 if test -n "$am_sleep_pid"; then
15310 # Hide warnings about reused PIDs.
15311 wait $am_sleep_pid 2>/dev/null
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15314 $as_echo "done" >&6; }
1523515315 if test -n "$EXEEXT"; then
1523615316 am__EXEEXT_TRUE=
1523715317 am__EXEEXT_FALSE='#'
1678316863
1678416864 case $ac_file$ac_mode in
1678516865 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16786 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16866 # Older Autoconf quotes --file arguments for eval, but not when files
1678716867 # are listed without --file. Let's play safe and only enable the eval
1678816868 # if we detect the quoting.
1678916869 case $CONFIG_FILES in
1679616876 # Strip MF so we end up with the name of the file.
1679716877 mf=`echo "$mf" | sed -e 's/:.*$//'`
1679816878 # Check whether this is an Automake generated Makefile or not.
16799 # We used to match only the files named `Makefile.in', but
16879 # We used to match only the files named 'Makefile.in', but
1680016880 # some people rename them; so instead we look at the file content.
1680116881 # Grep'ing the first line is not enough: some people post-process
1680216882 # each Makefile.in and add a new line on top of each file to say so.
1683016910 continue
1683116911 fi
1683216912 # Extract the definition of DEPDIR, am__include, and am__quote
16833 # from the Makefile without running `make'.
16913 # from the Makefile without running 'make'.
1683416914 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1683516915 test -z "$DEPDIR" && continue
1683616916 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16837 test -z "am__include" && continue
16917 test -z "$am__include" && continue
1683816918 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16839 # When using ansi2knr, U may be empty or an underscore; expand it
16840 U=`sed -n 's/^U = //p' < "$mf"`
1684116919 # Find all dependency output files, they are included files with
1684216920 # $(DEPDIR) in their names. We invoke sed twice because it is the
1684316921 # simplest approach to changing $(DEPDIR) to its actual value in the
1684416922 # expansion.
1684516923 for file in `sed -n "
1684616924 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16925 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1684816926 # Make sure the directory exists.
1684916927 test -f "$dirpart/$file" && continue
1685016928 fdir=`$as_dirname -- "$file" ||
0 dnl configure.in for libevent
1 dnl Copyright 2000-2007 Niels Provos
2 dnl Copyright 2007-2012 Niels Provos and Nick Mathewson
3 dnl
4 dnl See LICENSE for copying information.
5 dnl
6 dnl Original version Dug Song <dugsong@monkey.org>
7
8 AC_PREREQ(2.59)
9 AC_INIT(event.c)
10
11 AC_CONFIG_MACRO_DIR([m4])
12
13 AM_INIT_AUTOMAKE(libevent,2.0.21-stable-dev)
14 AC_CONFIG_HEADERS(config.h)
15 AC_DEFINE(NUMERIC_VERSION, 0x02001501, [Numeric representation of the version])
16
17 dnl Initialize prefix.
18 if test "$prefix" = "NONE"; then
19 prefix="/usr/local"
20 fi
21
22 AC_CANONICAL_BUILD
23 AC_CANONICAL_HOST
24 dnl the 'build' machine is where we run configure and compile
25 dnl the 'host' machine is where the resulting stuff runs.
26
27 case "$host_os" in
28
29 osf5*)
30 CFLAGS="$CFLAGS -D_OSF_SOURCE"
31 ;;
32 esac
33
34 dnl Checks for programs.
35 AC_PROG_CC
36 AM_PROG_CC_C_O
37 AC_PROG_INSTALL
38 AC_PROG_LN_S
39 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
40
41 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
42 # versions
43 ifdef([AC_PROG_SED], [AC_PROG_SED], [
44 AC_CHECK_PROGS(SED, [gsed sed])
45 ])
46
47 AC_PROG_GCC_TRADITIONAL
48
49 # We need to test for at least gcc 2.95 here, because older versions don't
50 # have -fno-strict-aliasing
51 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
52 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
53 #error
54 #endif])], have_gcc295=yes, have_gcc295=no)
55
56 if test "$GCC" = "yes" ; then
57 # Enable many gcc warnings by default...
58 CFLAGS="$CFLAGS -Wall"
59 # And disable the strict-aliasing optimization, since it breaks
60 # our sockaddr-handling code in strange ways.
61 if test x$have_gcc295 = xyes; then
62 CFLAGS="$CFLAGS -fno-strict-aliasing"
63 fi
64 fi
65
66 # OS X Lion started deprecating the system openssl. Let's just disable
67 # all deprecation warnings on OS X.
68 case "$host_os" in
69
70 darwin*)
71 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
72 ;;
73 esac
74
75 AC_ARG_ENABLE(gcc-warnings,
76 AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC))
77 AC_ARG_ENABLE(thread-support,
78 AS_HELP_STRING(--disable-thread-support, disable support for threading),
79 [], [enable_thread_support=yes])
80 AC_ARG_ENABLE(malloc-replacement,
81 AS_HELP_STRING(--disable-malloc-replacement, disable support for replacing the memory mgt functions),
82 [], [enable_malloc_replacement=yes])
83 AC_ARG_ENABLE(openssl,
84 AS_HELP_STRING(--disable-openssl, disable support for openssl encryption),
85 [], [enable_openssl=yes])
86 AC_ARG_ENABLE(debug-mode,
87 AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode),
88 [], [enable_debug_mode=yes])
89 AC_ARG_ENABLE([libevent-install],
90 AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]),
91 [], [enable_libevent_install=yes])
92 AC_ARG_ENABLE([libevent-regress],
93 AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
94 [], [enable_libevent_regress=yes])
95 AC_ARG_ENABLE([function-sections],
96 AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]),
97 [], [enable_function_sections=no])
98
99
100 AC_PROG_LIBTOOL
101
102 dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get
103 dnl built by default. You can also turn shared libs on and off from
104 dnl the command line with --enable-shared and --disable-shared.
105 dnl AC_DISABLE_SHARED
106 AC_SUBST(LIBTOOL_DEPS)
107
108 AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"])
109
110 dnl Checks for libraries.
111 AC_SEARCH_LIBS([inet_ntoa], [nsl])
112 AC_SEARCH_LIBS([socket], [socket])
113 AC_SEARCH_LIBS([inet_aton], [resolv])
114 AC_SEARCH_LIBS([clock_gettime], [rt])
115 AC_SEARCH_LIBS([sendfile], [sendfile])
116
117 dnl - check if the macro WIN32 is defined on this compiler.
118 dnl - (this is how we check for a windows version of GCC)
119 AC_MSG_CHECKING(for WIN32)
120 AC_TRY_COMPILE(,
121 [
122 #ifndef WIN32
123 die horribly
124 #endif
125 ],
126 bwin32=true; AC_MSG_RESULT(yes),
127 bwin32=false; AC_MSG_RESULT(no),
128 )
129
130 dnl - check if the macro __CYGWIN__ is defined on this compiler.
131 dnl - (this is how we check for a cygwin version of GCC)
132 AC_MSG_CHECKING(for CYGWIN)
133 AC_TRY_COMPILE(,
134 [
135 #ifndef __CYGWIN__
136 die horribly
137 #endif
138 ],
139 cygwin=true; AC_MSG_RESULT(yes),
140 cygwin=false; AC_MSG_RESULT(no),
141 )
142
143 AC_CHECK_HEADERS([zlib.h])
144
145 if test "x$ac_cv_header_zlib_h" = "xyes"; then
146 dnl Determine if we have zlib for regression tests
147 dnl Don't put this one in LIBS
148 save_LIBS="$LIBS"
149 LIBS=""
150 ZLIB_LIBS=""
151 have_zlib=no
152 AC_SEARCH_LIBS([inflateEnd], [z],
153 [have_zlib=yes
154 ZLIB_LIBS="$LIBS"
155 AC_DEFINE(HAVE_LIBZ, 1, [Define if the system has zlib])])
156 LIBS="$save_LIBS"
157 AC_SUBST(ZLIB_LIBS)
158 fi
159 AM_CONDITIONAL(ZLIB_REGRESS, [test "$have_zlib" = "yes"])
160
161 dnl See if we have openssl. This doesn't go in LIBS either.
162 if test "$bwin32" = true; then
163 EV_LIB_WS32=-lws2_32
164 EV_LIB_GDI=-lgdi32
165 else
166 EV_LIB_WS32=
167 EV_LIB_GDI=
168 fi
169 AC_SUBST(EV_LIB_WS32)
170 AC_SUBST(EV_LIB_GDI)
171 AC_SUBST(OPENSSL_LIBADD)
172
173 AC_CHECK_HEADERS([openssl/bio.h])
174
175 if test "$enable_openssl" = "yes"; then
176 save_LIBS="$LIBS"
177 LIBS=""
178 OPENSSL_LIBS=""
179 have_openssl=no
180 AC_SEARCH_LIBS([SSL_new], [ssl],
181 [have_openssl=yes
182 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
183 AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])],
184 [have_openssl=no],
185 [-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD])
186 LIBS="$save_LIBS"
187 AC_SUBST(OPENSSL_LIBS)
188 fi
189
190 dnl Checks for header files.
191 AC_HEADER_STDC
192 AC_CHECK_HEADERS([fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h])
193 AC_CHECK_HEADERS([sys/stat.h])
194 AC_CHECK_HEADERS(sys/sysctl.h, [], [], [
195 #ifdef HAVE_SYS_PARAM_H
196 #include <sys/param.h>
197 #endif
198 ])
199 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
200 AC_MSG_CHECKING(for TAILQ_FOREACH in sys/queue.h)
201 AC_EGREP_CPP(yes,
202 [
203 #include <sys/queue.h>
204 #ifdef TAILQ_FOREACH
205 yes
206 #endif
207 ], [AC_MSG_RESULT(yes)
208 AC_DEFINE(HAVE_TAILQFOREACH, 1,
209 [Define if TAILQ_FOREACH is defined in <sys/queue.h>])],
210 AC_MSG_RESULT(no)
211 )
212 fi
213
214 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
215 AC_MSG_CHECKING(for timeradd in sys/time.h)
216 AC_EGREP_CPP(yes,
217 [
218 #include <sys/time.h>
219 #ifdef timeradd
220 yes
221 #endif
222 ], [ AC_DEFINE(HAVE_TIMERADD, 1,
223 [Define if timeradd is defined in <sys/time.h>])
224 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
225 )
226 fi
227
228 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
229 AC_MSG_CHECKING(for timercmp in sys/time.h)
230 AC_EGREP_CPP(yes,
231 [
232 #include <sys/time.h>
233 #ifdef timercmp
234 yes
235 #endif
236 ], [ AC_DEFINE(HAVE_TIMERCMP, 1,
237 [Define if timercmp is defined in <sys/time.h>])
238 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
239 )
240 fi
241
242 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
243 AC_MSG_CHECKING(for timerclear in sys/time.h)
244 AC_EGREP_CPP(yes,
245 [
246 #include <sys/time.h>
247 #ifdef timerclear
248 yes
249 #endif
250 ], [ AC_DEFINE(HAVE_TIMERCLEAR, 1,
251 [Define if timerclear is defined in <sys/time.h>])
252 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
253 )
254 fi
255
256 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
257 AC_MSG_CHECKING(for timerisset in sys/time.h)
258 AC_EGREP_CPP(yes,
259 [
260 #include <sys/time.h>
261 #ifdef timerisset
262 yes
263 #endif
264 ], [ AC_DEFINE(HAVE_TIMERISSET, 1,
265 [Define if timerisset is defined in <sys/time.h>])
266 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
267 )
268 fi
269
270 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
271 AC_CHECK_DECLS([CTL_KERN, KERN_RANDOM, RANDOM_UUID, KERN_ARND], [], [],
272 [[#include <sys/types.h>
273 #include <sys/sysctl.h>]]
274 )
275 fi
276
277 AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
278 AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue)
279 AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue)
280
281 if test x$bwin32 = xtrue; then
282 AC_SEARCH_LIBS([getservbyname],[ws2_32])
283 fi
284
285 dnl Checks for typedefs, structures, and compiler characteristics.
286 AC_C_CONST
287 AC_C_INLINE
288 AC_HEADER_TIME
289
290 dnl Checks for library functions.
291 AC_CHECK_FUNCS([gettimeofday vasprintf fcntl clock_gettime strtok_r strsep])
292 AC_CHECK_FUNCS([getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl])
293 AC_CHECK_FUNCS([umask])
294
295 AC_CACHE_CHECK(
296 [for getaddrinfo],
297 [libevent_cv_getaddrinfo],
298 [AC_LINK_IFELSE(
299 [AC_LANG_PROGRAM(
300 [[
301 #ifdef HAVE_NETDB_H
302 #include <netdb.h>
303 #endif
304 ]],
305 [[
306 getaddrinfo;
307 ]]
308 )],
309 [libevent_cv_getaddrinfo=yes],
310 [libevent_cv_getaddrinfo=no]
311 )]
312 )
313 if test "$libevent_cv_getaddrinfo" = "yes" ; then
314 AC_DEFINE([HAVE_GETADDRINFO], [1], [Do we have getaddrinfo()?])
315 else
316
317 AC_CHECK_FUNCS([getservbyname])
318 # Check for gethostbyname_r in all its glorious incompatible versions.
319 # (This is cut-and-pasted from Tor, which based its logic on
320 # Python's configure.in.)
321 AH_TEMPLATE(HAVE_GETHOSTBYNAME_R,
322 [Define this if you have any gethostbyname_r()])
323
324 AC_CHECK_FUNC(gethostbyname_r, [
325 AC_MSG_CHECKING([how many arguments gethostbyname_r() wants])
326 OLD_CFLAGS=$CFLAGS
327 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
328 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
329 #include <netdb.h>
330 ], [[
331 char *cp1, *cp2;
332 struct hostent *h1, *h2;
333 int i1, i2;
334 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
335 ]])],[
336 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
337 AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1,
338 [Define this if gethostbyname_r takes 6 arguments])
339 AC_MSG_RESULT(6)
340 ], [
341 AC_TRY_COMPILE([
342 #include <netdb.h>
343 ], [
344 char *cp1, *cp2;
345 struct hostent *h1;
346 int i1, i2;
347 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
348 ], [
349 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
350 AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1,
351 [Define this if gethostbyname_r takes 5 arguments])
352 AC_MSG_RESULT(5)
353 ], [
354 AC_TRY_COMPILE([
355 #include <netdb.h>
356 ], [
357 char *cp1;
358 struct hostent *h1;
359 struct hostent_data hd;
360 (void) gethostbyname_r(cp1,h1,&hd);
361 ], [
362 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
363 AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1,
364 [Define this if gethostbyname_r takes 3 arguments])
365 AC_MSG_RESULT(3)
366 ], [
367 AC_MSG_RESULT(0)
368 ])
369 ])
370 ])
371 CFLAGS=$OLD_CFLAGS
372 ])
373
374 fi
375
376 AC_CHECK_SIZEOF(long)
377
378 AC_MSG_CHECKING(for F_SETFD in fcntl.h)
379 AC_EGREP_CPP(yes,
380 [
381 #define _GNU_SOURCE
382 #include <fcntl.h>
383 #ifdef F_SETFD
384 yes
385 #endif
386 ], [ AC_DEFINE(HAVE_SETFD, 1,
387 [Define if F_SETFD is defined in <fcntl.h>])
388 AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no))
389
390 needsignal=no
391 haveselect=no
392 if test x$bwin32 != xtrue; then
393 AC_CHECK_FUNCS(select, [haveselect=yes], )
394 if test "x$haveselect" = "xyes" ; then
395 needsignal=yes
396 fi
397 fi
398 AM_CONDITIONAL(SELECT_BACKEND, [test "x$haveselect" = "xyes"])
399
400 havepoll=no
401 AC_CHECK_FUNCS(poll, [havepoll=yes], )
402 if test "x$havepoll" = "xyes" ; then
403 needsignal=yes
404 fi
405 AM_CONDITIONAL(POLL_BACKEND, [test "x$havepoll" = "xyes"])
406
407 havedevpoll=no
408 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
409 AC_DEFINE(HAVE_DEVPOLL, 1,
410 [Define if /dev/poll is available])
411 fi
412 AM_CONDITIONAL(DEVPOLL_BACKEND, [test "x$ac_cv_header_sys_devpoll_h" = "xyes"])
413
414 havekqueue=no
415 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
416 AC_CHECK_FUNCS(kqueue, [havekqueue=yes], )
417 if test "x$havekqueue" = "xyes" ; then
418 AC_MSG_CHECKING(for working kqueue)
419 AC_TRY_RUN(
420 #include <sys/types.h>
421 #include <sys/time.h>
422 #include <sys/event.h>
423 #include <stdio.h>
424 #include <unistd.h>
425 #include <fcntl.h>
426
427 int
428 main(int argc, char **argv)
429 {
430 int kq;
431 int n;
432 int fd[[2]];
433 struct kevent ev;
434 struct timespec ts;
435 char buf[[8000]];
436
437 if (pipe(fd) == -1)
438 exit(1);
439 if (fcntl(fd[[1]], F_SETFL, O_NONBLOCK) == -1)
440 exit(1);
441
442 while ((n = write(fd[[1]], buf, sizeof(buf))) == sizeof(buf))
443 ;
444
445 if ((kq = kqueue()) == -1)
446 exit(1);
447
448 memset(&ev, 0, sizeof(ev));
449 ev.ident = fd[[1]];
450 ev.filter = EVFILT_WRITE;
451 ev.flags = EV_ADD | EV_ENABLE;
452 n = kevent(kq, &ev, 1, NULL, 0, NULL);
453 if (n == -1)
454 exit(1);
455
456 read(fd[[0]], buf, sizeof(buf));
457
458 ts.tv_sec = 0;
459 ts.tv_nsec = 0;
460 n = kevent(kq, NULL, 0, &ev, 1, &ts);
461 if (n == -1 || n == 0)
462 exit(1);
463
464 exit(0);
465 }, [AC_MSG_RESULT(yes)
466 AC_DEFINE(HAVE_WORKING_KQUEUE, 1,
467 [Define if kqueue works correctly with pipes])
468 havekqueue=yes
469 ], AC_MSG_RESULT(no), AC_MSG_RESULT(no))
470 fi
471 fi
472 AM_CONDITIONAL(KQUEUE_BACKEND, [test "x$havekqueue" = "xyes"])
473
474 haveepollsyscall=no
475 haveepoll=no
476 AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], )
477 if test "x$haveepoll" = "xyes" ; then
478 AC_DEFINE(HAVE_EPOLL, 1,
479 [Define if your system supports the epoll system calls])
480 needsignal=yes
481 fi
482 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
483 if test "x$haveepoll" = "xno" ; then
484 AC_MSG_CHECKING(for epoll system call)
485 AC_TRY_RUN(
486 #include <stdint.h>
487 #include <sys/param.h>
488 #include <sys/types.h>
489 #include <sys/syscall.h>
490 #include <sys/epoll.h>
491 #include <unistd.h>
492
493 int
494 epoll_create(int size)
495 {
496 return (syscall(__NR_epoll_create, size));
497 }
498
499 int
500 main(int argc, char **argv)
501 {
502 int epfd;
503
504 epfd = epoll_create(256);
505 exit (epfd == -1 ? 1 : 0);
506 }, [AC_MSG_RESULT(yes)
507 AC_DEFINE(HAVE_EPOLL, 1,
508 [Define if your system supports the epoll system calls])
509 needsignal=yes
510 have_epoll=yes
511 AC_LIBOBJ(epoll_sub)
512 ], AC_MSG_RESULT(no), AC_MSG_RESULT(no))
513 fi
514 fi
515 AM_CONDITIONAL(EPOLL_BACKEND, [test "x$haveepoll" = "xyes"])
516
517 haveeventports=no
518 AC_CHECK_FUNCS(port_create, [haveeventports=yes], )
519 if test "x$haveeventports" = "xyes" ; then
520 AC_DEFINE(HAVE_EVENT_PORTS, 1,
521 [Define if your system supports event ports])
522 needsignal=yes
523 fi
524 AM_CONDITIONAL(EVPORT_BACKEND, [test "x$haveeventports" = "xyes"])
525
526 if test "x$bwin32" = "xtrue"; then
527 needsignal=yes
528 fi
529
530 AM_CONDITIONAL(SIGNAL_SUPPORT, [test "x$needsignal" = "xyes"])
531
532 AC_TYPE_PID_T
533 AC_TYPE_SIZE_T
534 AC_TYPE_SSIZE_T
535
536 AC_CHECK_TYPES([uint64_t, uint32_t, uint16_t, uint8_t, uintptr_t], , ,
537 [#ifdef HAVE_STDINT_H
538 #include <stdint.h>
539 #elif defined(HAVE_INTTYPES_H)
540 #include <inttypes.h>
541 #endif
542 #ifdef HAVE_SYS_TYPES_H
543 #include <sys/types.h>
544 #endif])
545
546 AC_CHECK_TYPES([fd_mask], , ,
547 [#ifdef HAVE_SYS_TYPES_H
548 #include <sys/types.h>
549 #endif
550 #ifdef HAVE_SYS_SELECT_H
551 #include <sys/select.h>
552 #endif])
553
554 AC_CHECK_SIZEOF(long long)
555 AC_CHECK_SIZEOF(long)
556 AC_CHECK_SIZEOF(int)
557 AC_CHECK_SIZEOF(short)
558 AC_CHECK_SIZEOF(size_t)
559 AC_CHECK_SIZEOF(void *)
560
561 AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t, struct addrinfo, struct sockaddr_storage], , ,
562 [#define _GNU_SOURCE
563 #include <sys/types.h>
564 #ifdef HAVE_NETINET_IN_H
565 #include <netinet/in.h>
566 #endif
567 #ifdef HAVE_NETINET_IN6_H
568 #include <netinet/in6.h>
569 #endif
570 #ifdef HAVE_SYS_SOCKET_H
571 #include <sys/socket.h>
572 #endif
573 #ifdef HAVE_NETDB_H
574 #include <netdb.h>
575 #endif
576 #ifdef WIN32
577 #define WIN32_WINNT 0x400
578 #define _WIN32_WINNT 0x400
579 #define WIN32_LEAN_AND_MEAN
580 #if defined(_MSC_VER) && (_MSC_VER < 1300)
581 #include <winsock.h>
582 #else
583 #include <winsock2.h>
584 #include <ws2tcpip.h>
585 #endif
586 #endif
587 ])
588 AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16, struct sockaddr_in.sin_len, struct sockaddr_in6.sin6_len, struct sockaddr_storage.ss_family, struct sockaddr_storage.__ss_family], , ,
589 [#include <sys/types.h>
590 #ifdef HAVE_NETINET_IN_H
591 #include <netinet/in.h>
592 #endif
593 #ifdef HAVE_NETINET_IN6_H
594 #include <netinet/in6.h>
595 #endif
596 #ifdef HAVE_SYS_SOCKET_H
597 #include <sys/socket.h>
598 #endif
599 #ifdef WIN32
600 #define WIN32_WINNT 0x400
601 #define _WIN32_WINNT 0x400
602 #define WIN32_LEAN_AND_MEAN
603 #if defined(_MSC_VER) && (_MSC_VER < 1300)
604 #include <winsock.h>
605 #else
606 #include <winsock2.h>
607 #include <ws2tcpip.h>
608 #endif
609 #endif
610 ])
611
612 AC_MSG_CHECKING([for socklen_t])
613 AC_TRY_COMPILE([
614 #include <sys/types.h>
615 #include <sys/socket.h>],
616 [socklen_t x;],
617 AC_MSG_RESULT([yes]),
618 [AC_MSG_RESULT([no])
619 AC_DEFINE(socklen_t, unsigned int,
620 [Define to unsigned int if you dont have it])]
621 )
622
623 AC_MSG_CHECKING([whether our compiler supports __func__])
624 AC_TRY_COMPILE([],
625 [ const char *cp = __func__; ],
626 AC_MSG_RESULT([yes]),
627 AC_MSG_RESULT([no])
628 AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
629 AC_TRY_COMPILE([],
630 [ const char *cp = __FUNCTION__; ],
631 AC_MSG_RESULT([yes])
632 AC_DEFINE(__func__, __FUNCTION__,
633 [Define to appropriate substitue if compiler doesnt have __func__]),
634 AC_MSG_RESULT([no])
635 AC_DEFINE(__func__, __FILE__,
636 [Define to appropriate substitue if compiler doesnt have __func__])))
637
638
639 # check if we can compile with pthreads
640 have_pthreads=no
641 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
642 ACX_PTHREAD([
643 AC_DEFINE(HAVE_PTHREADS, 1,
644 [Define if we have pthreads on this system])
645 have_pthreads=yes])
646 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
647 AC_CHECK_SIZEOF(pthread_t, ,
648 [AC_INCLUDES_DEFAULT()
649 #include <pthread.h> ]
650 )
651 fi
652 AM_CONDITIONAL(PTHREADS, [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"])
653
654 # check if we should compile locking into the library
655 if test x$enable_thread_support = xno; then
656 AC_DEFINE(DISABLE_THREAD_SUPPORT, 1,
657 [Define if libevent should not be compiled with thread support])
658 fi
659
660 # check if we should hard-code the mm functions.
661 if test x$enable_malloc_replacement = xno; then
662 AC_DEFINE(DISABLE_MM_REPLACEMENT, 1,
663 [Define if libevent should not allow replacing the mm functions])
664 fi
665
666 # check if we should hard-code debugging out
667 if test x$enable_debug_mode = xno; then
668 AC_DEFINE(DISABLE_DEBUG_MODE, 1,
669 [Define if libevent should build without support for a debug mode])
670 fi
671
672 # check if we have and should use openssl
673 AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl" = "yes"])
674
675 # Add some more warnings which we use in development but not in the
676 # released versions. (Some relevant gcc versions can't handle these.)
677 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
678
679 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
680 #if !defined(__GNUC__) || (__GNUC__ < 4)
681 #error
682 #endif])], have_gcc4=yes, have_gcc4=no)
683
684 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
685 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
686 #error
687 #endif])], have_gcc42=yes, have_gcc42=no)
688
689 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
690 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
691 #error
692 #endif])], have_gcc45=yes, have_gcc45=no)
693
694 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
695 #if !defined(__clang__)
696 #error
697 #endif])], have_clang=yes, have_clang=no)
698
699 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
700 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
701
702 if test x$have_gcc4 = xyes ; then
703 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
704 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
705 #CFLAGS="$CFLAGS -Wold-style-definition"
706 fi
707
708 if test x$have_gcc42 = xyes ; then
709 # These warnings break gcc 4.0.2 and work on gcc 4.2
710 CFLAGS="$CFLAGS -Waddress"
711 fi
712
713 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
714 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
715 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
716 fi
717
718 if test x$have_gcc45 = xyes ; then
719 # These warnings work on gcc 4.5
720 CFLAGS="$CFLAGS -Wlogical-op"
721 fi
722
723 if test x$have_clang = xyes; then
724 # Disable the unused-function warnings, because these trigger
725 # for minheap-internal.h related code.
726 CFLAGS="$CFLAGS -Wno-unused-function"
727 fi
728
729 ##This will break the world on some 64-bit architectures
730 # CFLAGS="$CFLAGS -Winline"
731
732 fi
733
734 LIBEVENT_GC_SECTIONS=
735 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
736 AC_CACHE_CHECK(
737 [if linker supports omitting unused code and data],
738 [libevent_cv_gc_sections_runs],
739 [
740 dnl NetBSD will link but likely not run with --gc-sections
741 dnl http://bugs.ntp.org/1844
742 dnl http://gnats.netbsd.org/40401
743 dnl --gc-sections causes attempt to load as linux elf, with
744 dnl wrong syscalls in place. Test a little gauntlet of
745 dnl simple stdio read code checking for errors, expecting
746 dnl enough syscall differences that the NetBSD code will
747 dnl fail even with Linux emulation working as designed.
748 dnl A shorter test could be refined by someone with access
749 dnl to a NetBSD host with Linux emulation working.
750 origCFLAGS="$CFLAGS"
751 CFLAGS="$CFLAGS -Wl,--gc-sections"
752 AC_LINK_IFELSE(
753 [AC_LANG_PROGRAM(
754 [[
755 #include <stdlib.h>
756 #include <stdio.h>
757 ]],
758 [[
759 FILE * fpC;
760 char buf[32];
761 size_t cch;
762 int read_success_once;
763
764 fpC = fopen("conftest.c", "r");
765 if (NULL == fpC)
766 exit(1);
767 do {
768 cch = fread(buf, sizeof(buf), 1, fpC);
769 read_success_once |= (0 != cch);
770 } while (0 != cch);
771 if (!read_success_once)
772 exit(2);
773 if (!feof(fpC))
774 exit(3);
775 if (0 != fclose(fpC))
776 exit(4);
777
778 exit(EXIT_SUCCESS);
779 ]]
780 )],
781 [
782 dnl We have to do this invocation manually so that we can
783 dnl get the output of conftest.err to make sure it doesn't
784 dnl mention gc-sections.
785 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
786 libevent_cv_gc_sections_runs=no
787 else
788 libevent_cv_gc_sections_runs=no
789 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
790 fi
791 ],
792 [libevent_cv_gc_sections_runs=no]
793 )
794 CFLAGS="$origCFLAGS"
795 AS_UNSET([origCFLAGS])
796 ]
797 )
798 case "$libevent_cv_gc_sections_runs" in
799 yes)
800 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
801 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
802 ;;
803 esac
804 fi
805 AC_SUBST([LIBEVENT_GC_SECTIONS])
806
807 AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"])
808
809 AC_CONFIG_FILES( [libevent.pc libevent_openssl.pc libevent_pthreads.pc] )
810 AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile)
+0
-806
libevent/configure.in less more
0 dnl configure.in for libevent
1 dnl Copyright 2000-2007 Niels Provos
2 dnl Copyright 2007-2012 Niels Provos and Nick Mathewson
3 dnl
4 dnl See LICENSE for copying information.
5 dnl
6 dnl Original version Dug Song <dugsong@monkey.org>
7
8 AC_PREREQ(2.59c)
9 AC_INIT(event.c)
10
11 AC_CONFIG_MACRO_DIR([m4])
12
13 AM_INIT_AUTOMAKE(libevent,2.0.21-stable)
14 AM_CONFIG_HEADER(config.h)
15 AC_DEFINE(NUMERIC_VERSION, 0x02001500, [Numeric representation of the version])
16
17 dnl Initialize prefix.
18 if test "$prefix" = "NONE"; then
19 prefix="/usr/local"
20 fi
21
22 AC_CANONICAL_BUILD
23 AC_CANONICAL_HOST
24 dnl the 'build' machine is where we run configure and compile
25 dnl the 'host' machine is where the resulting stuff runs.
26
27 case "$host_os" in
28
29 osf5*)
30 CFLAGS="$CFLAGS -D_OSF_SOURCE"
31 ;;
32 esac
33
34 dnl Checks for programs.
35 AC_PROG_CC
36 AM_PROG_CC_C_O
37 AC_PROG_SED
38 AC_PROG_INSTALL
39 AC_PROG_LN_S
40 AC_PROG_MKDIR_P
41
42 AC_PROG_GCC_TRADITIONAL
43
44 # We need to test for at least gcc 2.95 here, because older versions don't
45 # have -fno-strict-aliasing
46 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
47 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
48 #error
49 #endif])], have_gcc295=yes, have_gcc295=no)
50
51 if test "$GCC" = "yes" ; then
52 # Enable many gcc warnings by default...
53 CFLAGS="$CFLAGS -Wall"
54 # And disable the strict-aliasing optimization, since it breaks
55 # our sockaddr-handling code in strange ways.
56 if test x$have_gcc295 = xyes; then
57 CFLAGS="$CFLAGS -fno-strict-aliasing"
58 fi
59 fi
60
61 # OS X Lion started deprecating the system openssl. Let's just disable
62 # all deprecation warnings on OS X.
63 case "$host_os" in
64
65 darwin*)
66 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
67 ;;
68 esac
69
70 AC_ARG_ENABLE(gcc-warnings,
71 AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC))
72 AC_ARG_ENABLE(thread-support,
73 AS_HELP_STRING(--disable-thread-support, disable support for threading),
74 [], [enable_thread_support=yes])
75 AC_ARG_ENABLE(malloc-replacement,
76 AS_HELP_STRING(--disable-malloc-replacement, disable support for replacing the memory mgt functions),
77 [], [enable_malloc_replacement=yes])
78 AC_ARG_ENABLE(openssl,
79 AS_HELP_STRING(--disable-openssl, disable support for openssl encryption),
80 [], [enable_openssl=yes])
81 AC_ARG_ENABLE(debug-mode,
82 AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode),
83 [], [enable_debug_mode=yes])
84 AC_ARG_ENABLE([libevent-install],
85 AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]),
86 [], [enable_libevent_install=yes])
87 AC_ARG_ENABLE([libevent-regress],
88 AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
89 [], [enable_libevent_regress=yes])
90 AC_ARG_ENABLE([function-sections],
91 AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]),
92 [], [enable_function_sections=no])
93
94
95 AC_PROG_LIBTOOL
96
97 dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get
98 dnl built by default. You can also turn shared libs on and off from
99 dnl the command line with --enable-shared and --disable-shared.
100 dnl AC_DISABLE_SHARED
101 AC_SUBST(LIBTOOL_DEPS)
102
103 AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"])
104
105 dnl Checks for libraries.
106 AC_SEARCH_LIBS([inet_ntoa], [nsl])
107 AC_SEARCH_LIBS([socket], [socket])
108 AC_SEARCH_LIBS([inet_aton], [resolv])
109 AC_SEARCH_LIBS([clock_gettime], [rt])
110 AC_SEARCH_LIBS([sendfile], [sendfile])
111
112 dnl - check if the macro WIN32 is defined on this compiler.
113 dnl - (this is how we check for a windows version of GCC)
114 AC_MSG_CHECKING(for WIN32)
115 AC_TRY_COMPILE(,
116 [
117 #ifndef WIN32
118 die horribly
119 #endif
120 ],
121 bwin32=true; AC_MSG_RESULT(yes),
122 bwin32=false; AC_MSG_RESULT(no),
123 )
124
125 dnl - check if the macro __CYGWIN__ is defined on this compiler.
126 dnl - (this is how we check for a cygwin version of GCC)
127 AC_MSG_CHECKING(for CYGWIN)
128 AC_TRY_COMPILE(,
129 [
130 #ifndef __CYGWIN__
131 die horribly
132 #endif
133 ],
134 cygwin=true; AC_MSG_RESULT(yes),
135 cygwin=false; AC_MSG_RESULT(no),
136 )
137
138 AC_CHECK_HEADERS([zlib.h])
139
140 if test "x$ac_cv_header_zlib_h" = "xyes"; then
141 dnl Determine if we have zlib for regression tests
142 dnl Don't put this one in LIBS
143 save_LIBS="$LIBS"
144 LIBS=""
145 ZLIB_LIBS=""
146 have_zlib=no
147 AC_SEARCH_LIBS([inflateEnd], [z],
148 [have_zlib=yes
149 ZLIB_LIBS="$LIBS"
150 AC_DEFINE(HAVE_LIBZ, 1, [Define if the system has zlib])])
151 LIBS="$save_LIBS"
152 AC_SUBST(ZLIB_LIBS)
153 fi
154 AM_CONDITIONAL(ZLIB_REGRESS, [test "$have_zlib" = "yes"])
155
156 dnl See if we have openssl. This doesn't go in LIBS either.
157 if test "$bwin32" = true; then
158 EV_LIB_WS32=-lws2_32
159 EV_LIB_GDI=-lgdi32
160 else
161 EV_LIB_WS32=
162 EV_LIB_GDI=
163 fi
164 AC_SUBST(EV_LIB_WS32)
165 AC_SUBST(EV_LIB_GDI)
166 AC_SUBST(OPENSSL_LIBADD)
167
168 AC_CHECK_HEADERS([openssl/bio.h])
169
170 if test "$enable_openssl" = "yes"; then
171 save_LIBS="$LIBS"
172 LIBS=""
173 OPENSSL_LIBS=""
174 have_openssl=no
175 AC_SEARCH_LIBS([SSL_new], [ssl],
176 [have_openssl=yes
177 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
178 AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])],
179 [have_openssl=no],
180 [-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD])
181 LIBS="$save_LIBS"
182 AC_SUBST(OPENSSL_LIBS)
183 fi
184
185 dnl Checks for header files.
186 AC_HEADER_STDC
187 AC_CHECK_HEADERS([fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h])
188 AC_CHECK_HEADERS([sys/stat.h])
189 AC_CHECK_HEADERS(sys/sysctl.h, [], [], [
190 #ifdef HAVE_SYS_PARAM_H
191 #include <sys/param.h>
192 #endif
193 ])
194 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
195 AC_MSG_CHECKING(for TAILQ_FOREACH in sys/queue.h)
196 AC_EGREP_CPP(yes,
197 [
198 #include <sys/queue.h>
199 #ifdef TAILQ_FOREACH
200 yes
201 #endif
202 ], [AC_MSG_RESULT(yes)
203 AC_DEFINE(HAVE_TAILQFOREACH, 1,
204 [Define if TAILQ_FOREACH is defined in <sys/queue.h>])],
205 AC_MSG_RESULT(no)
206 )
207 fi
208
209 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
210 AC_MSG_CHECKING(for timeradd in sys/time.h)
211 AC_EGREP_CPP(yes,
212 [
213 #include <sys/time.h>
214 #ifdef timeradd
215 yes
216 #endif
217 ], [ AC_DEFINE(HAVE_TIMERADD, 1,
218 [Define if timeradd is defined in <sys/time.h>])
219 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
220 )
221 fi
222
223 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
224 AC_MSG_CHECKING(for timercmp in sys/time.h)
225 AC_EGREP_CPP(yes,
226 [
227 #include <sys/time.h>
228 #ifdef timercmp
229 yes
230 #endif
231 ], [ AC_DEFINE(HAVE_TIMERCMP, 1,
232 [Define if timercmp is defined in <sys/time.h>])
233 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
234 )
235 fi
236
237 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
238 AC_MSG_CHECKING(for timerclear in sys/time.h)
239 AC_EGREP_CPP(yes,
240 [
241 #include <sys/time.h>
242 #ifdef timerclear
243 yes
244 #endif
245 ], [ AC_DEFINE(HAVE_TIMERCLEAR, 1,
246 [Define if timerclear is defined in <sys/time.h>])
247 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
248 )
249 fi
250
251 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
252 AC_MSG_CHECKING(for timerisset in sys/time.h)
253 AC_EGREP_CPP(yes,
254 [
255 #include <sys/time.h>
256 #ifdef timerisset
257 yes
258 #endif
259 ], [ AC_DEFINE(HAVE_TIMERISSET, 1,
260 [Define if timerisset is defined in <sys/time.h>])
261 AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
262 )
263 fi
264
265 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
266 AC_CHECK_DECLS([CTL_KERN, KERN_RANDOM, RANDOM_UUID, KERN_ARND], [], [],
267 [[#include <sys/types.h>
268 #include <sys/sysctl.h>]]
269 )
270 fi
271
272 AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
273 AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue)
274 AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue)
275
276 if test x$bwin32 = xtrue; then
277 AC_SEARCH_LIBS([getservbyname],[ws2_32])
278 fi
279
280 dnl Checks for typedefs, structures, and compiler characteristics.
281 AC_C_CONST
282 AC_C_INLINE
283 AC_HEADER_TIME
284
285 dnl Checks for library functions.
286 AC_CHECK_FUNCS([gettimeofday vasprintf fcntl clock_gettime strtok_r strsep])
287 AC_CHECK_FUNCS([getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl])
288 AC_CHECK_FUNCS([umask])
289
290 AC_CACHE_CHECK(
291 [for getaddrinfo],
292 [libevent_cv_getaddrinfo],
293 [AC_LINK_IFELSE(
294 [AC_LANG_PROGRAM(
295 [[
296 #ifdef HAVE_NETDB_H
297 #include <netdb.h>
298 #endif
299 ]],
300 [[
301 getaddrinfo;
302 ]]
303 )],
304 [libevent_cv_getaddrinfo=yes],
305 [libevent_cv_getaddrinfo=no]
306 )]
307 )
308 if test "$libevent_cv_getaddrinfo" = "yes" ; then
309 AC_DEFINE([HAVE_GETADDRINFO], [1], [Do we have getaddrinfo()?])
310 else
311
312 AC_CHECK_FUNCS([getservbyname])
313 # Check for gethostbyname_r in all its glorious incompatible versions.
314 # (This is cut-and-pasted from Tor, which based its logic on
315 # Python's configure.in.)
316 AH_TEMPLATE(HAVE_GETHOSTBYNAME_R,
317 [Define this if you have any gethostbyname_r()])
318
319 AC_CHECK_FUNC(gethostbyname_r, [
320 AC_MSG_CHECKING([how many arguments gethostbyname_r() wants])
321 OLD_CFLAGS=$CFLAGS
322 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
323 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
324 #include <netdb.h>
325 ], [[
326 char *cp1, *cp2;
327 struct hostent *h1, *h2;
328 int i1, i2;
329 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
330 ]])],[
331 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
332 AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1,
333 [Define this if gethostbyname_r takes 6 arguments])
334 AC_MSG_RESULT(6)
335 ], [
336 AC_TRY_COMPILE([
337 #include <netdb.h>
338 ], [
339 char *cp1, *cp2;
340 struct hostent *h1;
341 int i1, i2;
342 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
343 ], [
344 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
345 AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1,
346 [Define this if gethostbyname_r takes 5 arguments])
347 AC_MSG_RESULT(5)
348 ], [
349 AC_TRY_COMPILE([
350 #include <netdb.h>
351 ], [
352 char *cp1;
353 struct hostent *h1;
354 struct hostent_data hd;
355 (void) gethostbyname_r(cp1,h1,&hd);
356 ], [
357 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
358 AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1,
359 [Define this if gethostbyname_r takes 3 arguments])
360 AC_MSG_RESULT(3)
361 ], [
362 AC_MSG_RESULT(0)
363 ])
364 ])
365 ])
366 CFLAGS=$OLD_CFLAGS
367 ])
368
369 fi
370
371 AC_CHECK_SIZEOF(long)
372
373 AC_MSG_CHECKING(for F_SETFD in fcntl.h)
374 AC_EGREP_CPP(yes,
375 [
376 #define _GNU_SOURCE
377 #include <fcntl.h>
378 #ifdef F_SETFD
379 yes
380 #endif
381 ], [ AC_DEFINE(HAVE_SETFD, 1,
382 [Define if F_SETFD is defined in <fcntl.h>])
383 AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no))
384
385 needsignal=no
386 haveselect=no
387 if test x$bwin32 != xtrue; then
388 AC_CHECK_FUNCS(select, [haveselect=yes], )
389 if test "x$haveselect" = "xyes" ; then
390 needsignal=yes
391 fi
392 fi
393 AM_CONDITIONAL(SELECT_BACKEND, [test "x$haveselect" = "xyes"])
394
395 havepoll=no
396 AC_CHECK_FUNCS(poll, [havepoll=yes], )
397 if test "x$havepoll" = "xyes" ; then
398 needsignal=yes
399 fi
400 AM_CONDITIONAL(POLL_BACKEND, [test "x$havepoll" = "xyes"])
401
402 havedevpoll=no
403 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
404 AC_DEFINE(HAVE_DEVPOLL, 1,
405 [Define if /dev/poll is available])
406 fi
407 AM_CONDITIONAL(DEVPOLL_BACKEND, [test "x$ac_cv_header_sys_devpoll_h" = "xyes"])
408
409 havekqueue=no
410 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
411 AC_CHECK_FUNCS(kqueue, [havekqueue=yes], )
412 if test "x$havekqueue" = "xyes" ; then
413 AC_MSG_CHECKING(for working kqueue)
414 AC_TRY_RUN(
415 #include <sys/types.h>
416 #include <sys/time.h>
417 #include <sys/event.h>
418 #include <stdio.h>
419 #include <unistd.h>
420 #include <fcntl.h>
421
422 int
423 main(int argc, char **argv)
424 {
425 int kq;
426 int n;
427 int fd[[2]];
428 struct kevent ev;
429 struct timespec ts;
430 char buf[[8000]];
431
432 if (pipe(fd) == -1)
433 exit(1);
434 if (fcntl(fd[[1]], F_SETFL, O_NONBLOCK) == -1)
435 exit(1);
436
437 while ((n = write(fd[[1]], buf, sizeof(buf))) == sizeof(buf))
438 ;
439
440 if ((kq = kqueue()) == -1)
441 exit(1);
442
443 memset(&ev, 0, sizeof(ev));
444 ev.ident = fd[[1]];
445 ev.filter = EVFILT_WRITE;
446 ev.flags = EV_ADD | EV_ENABLE;
447 n = kevent(kq, &ev, 1, NULL, 0, NULL);
448 if (n == -1)
449 exit(1);
450
451 read(fd[[0]], buf, sizeof(buf));
452
453 ts.tv_sec = 0;
454 ts.tv_nsec = 0;
455 n = kevent(kq, NULL, 0, &ev, 1, &ts);
456 if (n == -1 || n == 0)
457 exit(1);
458
459 exit(0);
460 }, [AC_MSG_RESULT(yes)
461 AC_DEFINE(HAVE_WORKING_KQUEUE, 1,
462 [Define if kqueue works correctly with pipes])
463 havekqueue=yes
464 ], AC_MSG_RESULT(no), AC_MSG_RESULT(no))
465 fi
466 fi
467 AM_CONDITIONAL(KQUEUE_BACKEND, [test "x$havekqueue" = "xyes"])
468
469 haveepollsyscall=no
470 haveepoll=no
471 AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], )
472 if test "x$haveepoll" = "xyes" ; then
473 AC_DEFINE(HAVE_EPOLL, 1,
474 [Define if your system supports the epoll system calls])
475 needsignal=yes
476 fi
477 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
478 if test "x$haveepoll" = "xno" ; then
479 AC_MSG_CHECKING(for epoll system call)
480 AC_TRY_RUN(
481 #include <stdint.h>
482 #include <sys/param.h>
483 #include <sys/types.h>
484 #include <sys/syscall.h>
485 #include <sys/epoll.h>
486 #include <unistd.h>
487
488 int
489 epoll_create(int size)
490 {
491 return (syscall(__NR_epoll_create, size));
492 }
493
494 int
495 main(int argc, char **argv)
496 {
497 int epfd;
498
499 epfd = epoll_create(256);
500 exit (epfd == -1 ? 1 : 0);
501 }, [AC_MSG_RESULT(yes)
502 AC_DEFINE(HAVE_EPOLL, 1,
503 [Define if your system supports the epoll system calls])
504 needsignal=yes
505 have_epoll=yes
506 AC_LIBOBJ(epoll_sub)
507 ], AC_MSG_RESULT(no), AC_MSG_RESULT(no))
508 fi
509 fi
510 AM_CONDITIONAL(EPOLL_BACKEND, [test "x$haveepoll" = "xyes"])
511
512 haveeventports=no
513 AC_CHECK_FUNCS(port_create, [haveeventports=yes], )
514 if test "x$haveeventports" = "xyes" ; then
515 AC_DEFINE(HAVE_EVENT_PORTS, 1,
516 [Define if your system supports event ports])
517 needsignal=yes
518 fi
519 AM_CONDITIONAL(EVPORT_BACKEND, [test "x$haveeventports" = "xyes"])
520
521 if test "x$bwin32" = "xtrue"; then
522 needsignal=yes
523 fi
524
525 AM_CONDITIONAL(SIGNAL_SUPPORT, [test "x$needsignal" = "xyes"])
526
527 AC_TYPE_PID_T
528 AC_TYPE_SIZE_T
529 AC_TYPE_SSIZE_T
530
531 AC_CHECK_TYPES([uint64_t, uint32_t, uint16_t, uint8_t, uintptr_t], , ,
532 [#ifdef HAVE_STDINT_H
533 #include <stdint.h>
534 #elif defined(HAVE_INTTYPES_H)
535 #include <inttypes.h>
536 #endif
537 #ifdef HAVE_SYS_TYPES_H
538 #include <sys/types.h>
539 #endif])
540
541 AC_CHECK_TYPES([fd_mask], , ,
542 [#ifdef HAVE_SYS_TYPES_H
543 #include <sys/types.h>
544 #endif
545 #ifdef HAVE_SYS_SELECT_H
546 #include <sys/select.h>
547 #endif])
548
549 AC_CHECK_SIZEOF(long long)
550 AC_CHECK_SIZEOF(long)
551 AC_CHECK_SIZEOF(int)
552 AC_CHECK_SIZEOF(short)
553 AC_CHECK_SIZEOF(size_t)
554 AC_CHECK_SIZEOF(void *)
555
556 AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t, struct addrinfo, struct sockaddr_storage], , ,
557 [#define _GNU_SOURCE
558 #include <sys/types.h>
559 #ifdef HAVE_NETINET_IN_H
560 #include <netinet/in.h>
561 #endif
562 #ifdef HAVE_NETINET_IN6_H
563 #include <netinet/in6.h>
564 #endif
565 #ifdef HAVE_SYS_SOCKET_H
566 #include <sys/socket.h>
567 #endif
568 #ifdef HAVE_NETDB_H
569 #include <netdb.h>
570 #endif
571 #ifdef WIN32
572 #define WIN32_WINNT 0x400
573 #define _WIN32_WINNT 0x400
574 #define WIN32_LEAN_AND_MEAN
575 #if defined(_MSC_VER) && (_MSC_VER < 1300)
576 #include <winsock.h>
577 #else
578 #include <winsock2.h>
579 #include <ws2tcpip.h>
580 #endif
581 #endif
582 ])
583 AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16, struct sockaddr_in.sin_len, struct sockaddr_in6.sin6_len, struct sockaddr_storage.ss_family, struct sockaddr_storage.__ss_family], , ,
584 [#include <sys/types.h>
585 #ifdef HAVE_NETINET_IN_H
586 #include <netinet/in.h>
587 #endif
588 #ifdef HAVE_NETINET_IN6_H
589 #include <netinet/in6.h>
590 #endif
591 #ifdef HAVE_SYS_SOCKET_H
592 #include <sys/socket.h>
593 #endif
594 #ifdef WIN32
595 #define WIN32_WINNT 0x400
596 #define _WIN32_WINNT 0x400
597 #define WIN32_LEAN_AND_MEAN
598 #if defined(_MSC_VER) && (_MSC_VER < 1300)
599 #include <winsock.h>
600 #else
601 #include <winsock2.h>
602 #include <ws2tcpip.h>
603 #endif
604 #endif
605 ])
606
607 AC_MSG_CHECKING([for socklen_t])
608 AC_TRY_COMPILE([
609 #include <sys/types.h>
610 #include <sys/socket.h>],
611 [socklen_t x;],
612 AC_MSG_RESULT([yes]),
613 [AC_MSG_RESULT([no])
614 AC_DEFINE(socklen_t, unsigned int,
615 [Define to unsigned int if you dont have it])]
616 )
617
618 AC_MSG_CHECKING([whether our compiler supports __func__])
619 AC_TRY_COMPILE([],
620 [ const char *cp = __func__; ],
621 AC_MSG_RESULT([yes]),
622 AC_MSG_RESULT([no])
623 AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
624 AC_TRY_COMPILE([],
625 [ const char *cp = __FUNCTION__; ],
626 AC_MSG_RESULT([yes])
627 AC_DEFINE(__func__, __FUNCTION__,
628 [Define to appropriate substitue if compiler doesnt have __func__]),
629 AC_MSG_RESULT([no])
630 AC_DEFINE(__func__, __FILE__,
631 [Define to appropriate substitue if compiler doesnt have __func__])))
632
633
634 # check if we can compile with pthreads
635 have_pthreads=no
636 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
637 ACX_PTHREAD([
638 AC_DEFINE(HAVE_PTHREADS, 1,
639 [Define if we have pthreads on this system])
640 have_pthreads=yes])
641 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
642 AC_CHECK_SIZEOF(pthread_t, ,
643 [AC_INCLUDES_DEFAULT()
644 #include <pthread.h> ]
645 )
646 fi
647 AM_CONDITIONAL(PTHREADS, [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"])
648
649 # check if we should compile locking into the library
650 if test x$enable_thread_support = xno; then
651 AC_DEFINE(DISABLE_THREAD_SUPPORT, 1,
652 [Define if libevent should not be compiled with thread support])
653 fi
654
655 # check if we should hard-code the mm functions.
656 if test x$enable_malloc_replacement = xno; then
657 AC_DEFINE(DISABLE_MM_REPLACEMENT, 1,
658 [Define if libevent should not allow replacing the mm functions])
659 fi
660
661 # check if we should hard-code debugging out
662 if test x$enable_debug_mode = xno; then
663 AC_DEFINE(DISABLE_DEBUG_MODE, 1,
664 [Define if libevent should build without support for a debug mode])
665 fi
666
667 # check if we have and should use openssl
668 AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl" = "yes"])
669
670 # Add some more warnings which we use in development but not in the
671 # released versions. (Some relevant gcc versions can't handle these.)
672 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
673
674 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
675 #if !defined(__GNUC__) || (__GNUC__ < 4)
676 #error
677 #endif])], have_gcc4=yes, have_gcc4=no)
678
679 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
680 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
681 #error
682 #endif])], have_gcc42=yes, have_gcc42=no)
683
684 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
685 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
686 #error
687 #endif])], have_gcc45=yes, have_gcc45=no)
688
689 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
690 #if !defined(__clang__)
691 #error
692 #endif])], have_clang=yes, have_clang=no)
693
694 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
695 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
696
697 if test x$have_gcc4 = xyes ; then
698 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
699 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
700 #CFLAGS="$CFLAGS -Wold-style-definition"
701 fi
702
703 if test x$have_gcc42 = xyes ; then
704 # These warnings break gcc 4.0.2 and work on gcc 4.2
705 CFLAGS="$CFLAGS -Waddress"
706 fi
707
708 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
709 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
710 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
711 fi
712
713 if test x$have_gcc45 = xyes ; then
714 # These warnings work on gcc 4.5
715 CFLAGS="$CFLAGS -Wlogical-op"
716 fi
717
718 if test x$have_clang = xyes; then
719 # Disable the unused-function warnings, because these trigger
720 # for minheap-internal.h related code.
721 CFLAGS="$CFLAGS -Wno-unused-function"
722 fi
723
724 ##This will break the world on some 64-bit architectures
725 # CFLAGS="$CFLAGS -Winline"
726
727 fi
728
729 LIBEVENT_GC_SECTIONS=
730 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
731 AC_CACHE_CHECK(
732 [if linker supports omitting unused code and data],
733 [libevent_cv_gc_sections_runs],
734 [
735 dnl NetBSD will link but likely not run with --gc-sections
736 dnl http://bugs.ntp.org/1844
737 dnl http://gnats.netbsd.org/40401
738 dnl --gc-sections causes attempt to load as linux elf, with
739 dnl wrong syscalls in place. Test a little gauntlet of
740 dnl simple stdio read code checking for errors, expecting
741 dnl enough syscall differences that the NetBSD code will
742 dnl fail even with Linux emulation working as designed.
743 dnl A shorter test could be refined by someone with access
744 dnl to a NetBSD host with Linux emulation working.
745 origCFLAGS="$CFLAGS"
746 CFLAGS="$CFLAGS -Wl,--gc-sections"
747 AC_LINK_IFELSE(
748 [AC_LANG_PROGRAM(
749 [[
750 #include <stdlib.h>
751 #include <stdio.h>
752 ]],
753 [[
754 FILE * fpC;
755 char buf[32];
756 size_t cch;
757 int read_success_once;
758
759 fpC = fopen("conftest.c", "r");
760 if (NULL == fpC)
761 exit(1);
762 do {
763 cch = fread(buf, sizeof(buf), 1, fpC);
764 read_success_once |= (0 != cch);
765 } while (0 != cch);
766 if (!read_success_once)
767 exit(2);
768 if (!feof(fpC))
769 exit(3);
770 if (0 != fclose(fpC))
771 exit(4);
772
773 exit(EXIT_SUCCESS);
774 ]]
775 )],
776 [
777 dnl We have to do this invocation manually so that we can
778 dnl get the output of conftest.err to make sure it doesn't
779 dnl mention gc-sections.
780 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
781 libevent_cv_gc_sections_runs=no
782 else
783 libevent_cv_gc_sections_runs=no
784 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
785 fi
786 ],
787 [libevent_cv_gc_sections_runs=no]
788 )
789 CFLAGS="$origCFLAGS"
790 AS_UNSET([origCFLAGS])
791 ]
792 )
793 case "$libevent_cv_gc_sections_runs" in
794 yes)
795 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
796 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
797 ;;
798 esac
799 fi
800 AC_SUBST([LIBEVENT_GC_SECTIONS])
801
802 AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"])
803
804 AC_CONFIG_FILES( [libevent.pc libevent_openssl.pc libevent_pthreads.pc] )
805 AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile)
22132213 /* for evdns_transmit */
22142214 req->transmit_me = 1;
22152215 EVUTIL_ASSERT(req->trans_id != 0xffff);
2216
2217 if (!req->ns)
2218 {
2219 /* unable to transmit request if no nameservers */
2220 return 1;
2221 }
22162222
22172223 if (req->ns->choked) {
22182224 /* don't bother trying to write to a socket */
111111 #define LOAD(name) \
112112 name##_fn = GetProcAddress(lib, #name)
113113 LOAD(InitializeConditionVariable);
114 LOAD(SleepConditionVariable);
114 LOAD(SleepConditionVariableCS);
115115 LOAD(WakeAllConditionVariable);
116116 LOAD(WakeConditionVariable);
117117
258258 goto tidy_up_and_fail;
259259 if (size != sizeof(listen_addr))
260260 goto abort_tidy_up_and_fail;
261 evutil_closesocket(listener);
262261 /* Now check we are talking to ourself by matching port and host on the
263262 two sockets. */
264263 if (getsockname(connector, (struct sockaddr *) &connect_addr, &size) == -1)
268267 || listen_addr.sin_addr.s_addr != connect_addr.sin_addr.s_addr
269268 || listen_addr.sin_port != connect_addr.sin_port)
270269 goto abort_tidy_up_and_fail;
270 evutil_closesocket(listener);
271271 fd[0] = connector;
272272 fd[1] = acceptor;
273273
15611561 int r;
15621562 if (!buflen)
15631563 return 0;
1564 #ifdef _MSC_VER
1564 #if defined(_MSC_VER) || defined(WIN32)
15651565 r = _vsnprintf(buf, buflen, format, ap);
15661566 if (r < 0)
15671567 r = _vscprintf(format, ap);
21802180 int
21812181 evhttp_connection_connect(struct evhttp_connection *evcon)
21822182 {
2183 int old_state = evcon->state;
2184
21832185 if (evcon->state == EVCON_CONNECTING)
21842186 return (0);
21852187
22082210 /* make sure that we get a write callback */
22092211 bufferevent_enable(evcon->bufev, EV_WRITE);
22102212
2213 evcon->state = EVCON_CONNECTING;
2214
22112215 if (bufferevent_socket_connect_hostname(evcon->bufev, evcon->dns_base,
22122216 AF_UNSPEC, evcon->address, evcon->port) < 0) {
2217 evcon->state = old_state;
22132218 event_sock_warn(evcon->fd, "%s: connection to \"%s\" failed",
22142219 __func__, evcon->address);
22152220 /* some operating systems return ECONNREFUSED immediately
22192224 evhttp_connection_cb_cleanup(evcon);
22202225 return (0);
22212226 }
2222
2223 evcon->state = EVCON_CONNECTING;
22242227
22252228 return (0);
22262229 }
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2120 # See LICENSE for copying information.
2221
2322 VPATH = @srcdir@
24 am__make_dryrun = \
25 { \
26 am__dry=no; \
23 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
24 am__make_running_with_option = \
25 case $${target_option-} in \
26 ?) ;; \
27 *) echo "am__make_running_with_option: internal error: invalid" \
28 "target option '$${target_option-}' specified" >&2; \
29 exit 1;; \
30 esac; \
31 has_opt=no; \
32 sane_makeflags=$$MAKEFLAGS; \
33 if $(am__is_gnu_make); then \
34 sane_makeflags=$$MFLAGS; \
35 else \
2736 case $$MAKEFLAGS in \
2837 *\\[\ \ ]*) \
29 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
30 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
31 *) \
32 for am__flg in $$MAKEFLAGS; do \
33 case $$am__flg in \
34 *=*|--*) ;; \
35 *n*) am__dry=yes; break;; \
36 esac; \
37 done;; \
38 bs=\\; \
39 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
40 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3841 esac; \
39 test $$am__dry = yes; \
40 }
42 fi; \
43 skip_next=no; \
44 strip_trailopt () \
45 { \
46 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
47 }; \
48 for flg in $$sane_makeflags; do \
49 test $$skip_next = yes && { skip_next=no; continue; }; \
50 case $$flg in \
51 *=*|--*) continue;; \
52 -*I) strip_trailopt 'I'; skip_next=yes;; \
53 -*I?*) strip_trailopt 'I';; \
54 -*O) strip_trailopt 'O'; skip_next=yes;; \
55 -*O?*) strip_trailopt 'O';; \
56 -*l) strip_trailopt 'l'; skip_next=yes;; \
57 -*l?*) strip_trailopt 'l';; \
58 -[dEDm]) skip_next=yes;; \
59 -[JT]) skip_next=yes;; \
60 esac; \
61 case $$flg in \
62 *$$target_option*) has_opt=yes; break;; \
63 esac; \
64 done; \
65 test $$has_opt = yes
66 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
67 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4168 pkgdatadir = $(datadir)/@PACKAGE@
4269 pkgincludedir = $(includedir)/@PACKAGE@
4370 pkglibdir = $(libdir)/@PACKAGE@
5784 build_triplet = @build@
5885 host_triplet = @host@
5986 subdir = include
60 DIST_COMMON = $(am__nobase_include_HEADERS_DIST) \
61 $(am__noinst_HEADERS_DIST) $(srcdir)/Makefile.am \
62 $(srcdir)/Makefile.in
87 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
88 $(am__nobase_include_HEADERS_DIST) $(am__noinst_HEADERS_DIST)
6389 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
64 am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
65 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
66 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
67 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in
90 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \
91 $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
92 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
93 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
94 $(top_srcdir)/configure.ac
6895 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
6996 $(ACLOCAL_M4)
7097 mkinstalldirs = $(install_sh) -d
7198 CONFIG_HEADER = $(top_builddir)/config.h
7299 CONFIG_CLEAN_FILES =
73100 CONFIG_CLEAN_VPATH_FILES =
101 AM_V_P = $(am__v_P_@AM_V@)
102 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
103 am__v_P_0 = false
104 am__v_P_1 = :
105 AM_V_GEN = $(am__v_GEN_@AM_V@)
106 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
107 am__v_GEN_0 = @echo " GEN " $@;
108 am__v_GEN_1 =
109 AM_V_at = $(am__v_at_@AM_V@)
110 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
111 am__v_at_0 = @
112 am__v_at_1 =
74113 SOURCES =
75114 DIST_SOURCES =
76115 am__can_run_installinfo = \
126165 event2/tag_compat.h event2/thread.h event2/util.h
127166 HEADERS = $(nobase_include_HEADERS) $(nobase_nodist_include_HEADERS) \
128167 $(nodist_noinst_HEADERS) $(noinst_HEADERS)
168 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
169 # Read a list of newline-separated strings from the standard input,
170 # and print each of them once, without duplicates. Input order is
171 # *not* preserved.
172 am__uniquify_input = $(AWK) '\
173 BEGIN { nonempty = 0; } \
174 { items[$$0] = 1; nonempty = 1; } \
175 END { if (nonempty) { for (i in items) print i; }; } \
176 '
177 # Make sure the list of sources is unique. This is necessary because,
178 # e.g., the same source file might be shared among _SOURCES variables
179 # for different programs/libraries.
180 am__define_uniq_tagged_files = \
181 list='$(am__tagged_files)'; \
182 unique=`for i in $$list; do \
183 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
184 done | $(am__uniquify_input)`
129185 ETAGS = etags
130186 CTAGS = ctags
131187 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132188 ACLOCAL = @ACLOCAL@
133189 AMTAR = @AMTAR@
190 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
134191 AR = @AR@
135192 AUTOCONF = @AUTOCONF@
136193 AUTOHEADER = @AUTOHEADER@
373430 $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
374431 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
375432
376 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
377 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
378 unique=`for i in $$list; do \
379 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
380 done | \
381 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
382 END { if (nonempty) { for (i in files) print i; }; }'`; \
383 mkid -fID $$unique
384 tags: TAGS
385
386 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
387 $(TAGS_FILES) $(LISP)
433 ID: $(am__tagged_files)
434 $(am__define_uniq_tagged_files); mkid -fID $$unique
435 tags: tags-am
436 TAGS: tags
437
438 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
388439 set x; \
389440 here=`pwd`; \
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
391 unique=`for i in $$list; do \
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393 done | \
394 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
395 END { if (nonempty) { for (i in files) print i; }; }'`; \
441 $(am__define_uniq_tagged_files); \
396442 shift; \
397443 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
398444 test -n "$$unique" || unique=$$empty_fix; \
404450 $$unique; \
405451 fi; \
406452 fi
407 ctags: CTAGS
408 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
409 $(TAGS_FILES) $(LISP)
410 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
411 unique=`for i in $$list; do \
412 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
413 done | \
414 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
415 END { if (nonempty) { for (i in files) print i; }; }'`; \
453 ctags: ctags-am
454
455 CTAGS: ctags
456 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
457 $(am__define_uniq_tagged_files); \
416458 test -z "$(CTAGS_ARGS)$$unique" \
417459 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
418460 $$unique
421463 here=`$(am__cd) $(top_builddir) && pwd` \
422464 && $(am__cd) $(top_srcdir) \
423465 && gtags -i $(GTAGS_ARGS) "$$here"
466 cscopelist: cscopelist-am
467
468 cscopelist-am: $(am__tagged_files)
469 list='$(am__tagged_files)'; \
470 case "$(srcdir)" in \
471 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
472 *) sdir=$(subdir)/$(srcdir) ;; \
473 esac; \
474 for i in $$list; do \
475 if test -f "$$i"; then \
476 echo "$(subdir)/$$i"; \
477 else \
478 echo "$$sdir/$$i"; \
479 fi; \
480 done >> $(top_builddir)/cscope.files
424481
425482 distclean-tags:
426483 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
562619
563620 .MAKE: install-am install-strip
564621
565 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
566 clean-libtool ctags distclean distclean-generic \
567 distclean-libtool distclean-tags distdir dvi dvi-am html \
568 html-am info info-am install install-am install-data \
569 install-data-am install-dvi install-dvi-am install-exec \
570 install-exec-am install-html install-html-am install-info \
571 install-info-am install-man install-nobase_includeHEADERS \
622 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
623 clean-libtool cscopelist-am ctags ctags-am distclean \
624 distclean-generic distclean-libtool distclean-tags distdir dvi \
625 dvi-am html html-am info info-am install install-am \
626 install-data install-data-am install-dvi install-dvi-am \
627 install-exec install-exec-am install-html install-html-am \
628 install-info install-info-am install-man \
629 install-nobase_includeHEADERS \
572630 install-nobase_nodist_includeHEADERS install-pdf \
573631 install-pdf-am install-ps install-ps-am install-strip \
574632 installcheck installcheck-am installdirs maintainer-clean \
575633 maintainer-clean-generic mostlyclean mostlyclean-generic \
576 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
634 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
577635 uninstall-am uninstall-nobase_includeHEADERS \
578636 uninstall-nobase_nodist_includeHEADERS
579637
768768 #endif
769769
770770 /**
771 Makes the data at the begging of an evbuffer contiguous.
771 Makes the data at the beginning of an evbuffer contiguous.
772772
773773 @param buf the evbuffer to make contiguous
774774 @param size the number of bytes to make contiguous, or -1 to make the
406406 evutil_make_socket_nonblocking(new_fd);
407407
408408 if (lev->cb == NULL) {
409 evutil_closesocket(new_fd);
409410 UNLOCK(lev);
410411 return;
411412 }
0 AN_IDENTIFIER([ssize_t], [AC_TYPE_SSIZE_T])
1 AC_DEFUN([AC_TYPE_SSIZE_T], [AC_CHECK_TYPE(ssize_t, int)])
2
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2120 # See LICENSE for copying information.
2221
2322 VPATH = @srcdir@
24 am__make_dryrun = \
25 { \
26 am__dry=no; \
23 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
24 am__make_running_with_option = \
25 case $${target_option-} in \
26 ?) ;; \
27 *) echo "am__make_running_with_option: internal error: invalid" \
28 "target option '$${target_option-}' specified" >&2; \
29 exit 1;; \
30 esac; \
31 has_opt=no; \
32 sane_makeflags=$$MAKEFLAGS; \
33 if $(am__is_gnu_make); then \
34 sane_makeflags=$$MFLAGS; \
35 else \
2736 case $$MAKEFLAGS in \
2837 *\\[\ \ ]*) \
29 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
30 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
31 *) \
32 for am__flg in $$MAKEFLAGS; do \
33 case $$am__flg in \
34 *=*|--*) ;; \
35 *n*) am__dry=yes; break;; \
36 esac; \
37 done;; \
38 bs=\\; \
39 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
40 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3841 esac; \
39 test $$am__dry = yes; \
40 }
42 fi; \
43 skip_next=no; \
44 strip_trailopt () \
45 { \
46 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
47 }; \
48 for flg in $$sane_makeflags; do \
49 test $$skip_next = yes && { skip_next=no; continue; }; \
50 case $$flg in \
51 *=*|--*) continue;; \
52 -*I) strip_trailopt 'I'; skip_next=yes;; \
53 -*I?*) strip_trailopt 'I';; \
54 -*O) strip_trailopt 'O'; skip_next=yes;; \
55 -*O?*) strip_trailopt 'O';; \
56 -*l) strip_trailopt 'l'; skip_next=yes;; \
57 -*l?*) strip_trailopt 'l';; \
58 -[dEDm]) skip_next=yes;; \
59 -[JT]) skip_next=yes;; \
60 esac; \
61 case $$flg in \
62 *$$target_option*) has_opt=yes; break;; \
63 esac; \
64 done; \
65 test $$has_opt = yes
66 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
67 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4168 pkgdatadir = $(datadir)/@PACKAGE@
4269 pkgincludedir = $(includedir)/@PACKAGE@
4370 pkglibdir = $(libdir)/@PACKAGE@
6188 http-server$(EXEEXT) $(am__EXEEXT_1)
6289 @OPENSSL_TRUE@am__append_1 = le-proxy
6390 subdir = sample
64 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
91 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
6592 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66 am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
67 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
68 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
69 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in
93 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \
94 $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
95 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
96 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
97 $(top_srcdir)/configure.ac
7098 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
7199 $(ACLOCAL_M4)
72100 mkinstalldirs = $(install_sh) -d
80108 dns_example_LDADD = $(LDADD)
81109 am__DEPENDENCIES_1 =
82110 dns_example_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la
111 AM_V_lt = $(am__v_lt_@AM_V@)
112 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
113 am__v_lt_0 = --silent
114 am__v_lt_1 =
83115 am_event_test_OBJECTS = event-test.$(OBJEXT)
84116 event_test_OBJECTS = $(am_event_test_OBJECTS)
85117 event_test_LDADD = $(LDADD)
106138 time_test_OBJECTS = $(am_time_test_OBJECTS)
107139 time_test_LDADD = $(LDADD)
108140 time_test_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la
141 AM_V_P = $(am__v_P_@AM_V@)
142 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
143 am__v_P_0 = false
144 am__v_P_1 = :
145 AM_V_GEN = $(am__v_GEN_@AM_V@)
146 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
147 am__v_GEN_0 = @echo " GEN " $@;
148 am__v_GEN_1 =
149 AM_V_at = $(am__v_at_@AM_V@)
150 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
151 am__v_at_0 = @
152 am__v_at_1 =
109153 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
110154 depcomp =
111155 am__depfiles_maybe =
112156 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
113157 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
114 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
115 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
116 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
158 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
159 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
160 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
161 $(AM_CFLAGS) $(CFLAGS)
162 AM_V_CC = $(am__v_CC_@AM_V@)
163 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
164 am__v_CC_0 = @echo " CC " $@;
165 am__v_CC_1 =
117166 CCLD = $(CC)
118 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
119 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
120 $(LDFLAGS) -o $@
167 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
168 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
169 $(AM_LDFLAGS) $(LDFLAGS) -o $@
170 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
171 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
172 am__v_CCLD_0 = @echo " CCLD " $@;
173 am__v_CCLD_1 =
121174 SOURCES = $(dns_example_SOURCES) $(event_test_SOURCES) \
122175 $(hello_world_SOURCES) $(http_server_SOURCES) \
123176 $(le_proxy_SOURCES) $(signal_test_SOURCES) \
131184 n|no|NO) false;; \
132185 *) (install-info --version) >/dev/null 2>&1;; \
133186 esac
187 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
188 # Read a list of newline-separated strings from the standard input,
189 # and print each of them once, without duplicates. Input order is
190 # *not* preserved.
191 am__uniquify_input = $(AWK) '\
192 BEGIN { nonempty = 0; } \
193 { items[$$0] = 1; nonempty = 1; } \
194 END { if (nonempty) { for (i in items) print i; }; } \
195 '
196 # Make sure the list of sources is unique. This is necessary because,
197 # e.g., the same source file might be shared among _SOURCES variables
198 # for different programs/libraries.
199 am__define_uniq_tagged_files = \
200 list='$(am__tagged_files)'; \
201 unique=`for i in $$list; do \
202 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
203 done | $(am__uniquify_input)`
134204 ETAGS = etags
135205 CTAGS = ctags
136206 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
137207 ACLOCAL = @ACLOCAL@
138208 AMTAR = @AMTAR@
209 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
139210 AR = @AR@
140211 AUTOCONF = @AUTOCONF@
141212 AUTOHEADER = @AUTOHEADER@
313384 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
314385 echo " rm -f" $$list; \
315386 rm -f $$list
387
316388 dns-example$(EXEEXT): $(dns_example_OBJECTS) $(dns_example_DEPENDENCIES) $(EXTRA_dns_example_DEPENDENCIES)
317389 @rm -f dns-example$(EXEEXT)
318 $(LINK) $(dns_example_OBJECTS) $(dns_example_LDADD) $(LIBS)
390 $(AM_V_CCLD)$(LINK) $(dns_example_OBJECTS) $(dns_example_LDADD) $(LIBS)
391
319392 event-test$(EXEEXT): $(event_test_OBJECTS) $(event_test_DEPENDENCIES) $(EXTRA_event_test_DEPENDENCIES)
320393 @rm -f event-test$(EXEEXT)
321 $(LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS)
394 $(AM_V_CCLD)$(LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS)
395
322396 hello-world$(EXEEXT): $(hello_world_OBJECTS) $(hello_world_DEPENDENCIES) $(EXTRA_hello_world_DEPENDENCIES)
323397 @rm -f hello-world$(EXEEXT)
324 $(LINK) $(hello_world_OBJECTS) $(hello_world_LDADD) $(LIBS)
398 $(AM_V_CCLD)$(LINK) $(hello_world_OBJECTS) $(hello_world_LDADD) $(LIBS)
399
325400 http-server$(EXEEXT): $(http_server_OBJECTS) $(http_server_DEPENDENCIES) $(EXTRA_http_server_DEPENDENCIES)
326401 @rm -f http-server$(EXEEXT)
327 $(LINK) $(http_server_OBJECTS) $(http_server_LDADD) $(LIBS)
402 $(AM_V_CCLD)$(LINK) $(http_server_OBJECTS) $(http_server_LDADD) $(LIBS)
403
328404 le-proxy$(EXEEXT): $(le_proxy_OBJECTS) $(le_proxy_DEPENDENCIES) $(EXTRA_le_proxy_DEPENDENCIES)
329405 @rm -f le-proxy$(EXEEXT)
330 $(LINK) $(le_proxy_OBJECTS) $(le_proxy_LDADD) $(LIBS)
406 $(AM_V_CCLD)$(LINK) $(le_proxy_OBJECTS) $(le_proxy_LDADD) $(LIBS)
407
331408 signal-test$(EXEEXT): $(signal_test_OBJECTS) $(signal_test_DEPENDENCIES) $(EXTRA_signal_test_DEPENDENCIES)
332409 @rm -f signal-test$(EXEEXT)
333 $(LINK) $(signal_test_OBJECTS) $(signal_test_LDADD) $(LIBS)
410 $(AM_V_CCLD)$(LINK) $(signal_test_OBJECTS) $(signal_test_LDADD) $(LIBS)
411
334412 time-test$(EXEEXT): $(time_test_OBJECTS) $(time_test_DEPENDENCIES) $(EXTRA_time_test_DEPENDENCIES)
335413 @rm -f time-test$(EXEEXT)
336 $(LINK) $(time_test_OBJECTS) $(time_test_LDADD) $(LIBS)
414 $(AM_V_CCLD)$(LINK) $(time_test_OBJECTS) $(time_test_LDADD) $(LIBS)
337415
338416 mostlyclean-compile:
339417 -rm -f *.$(OBJEXT)
342420 -rm -f *.tab.c
343421
344422 .c.o:
345 $(COMPILE) -c $<
423 $(AM_V_CC)$(COMPILE) -c $<
346424
347425 .c.obj:
348 $(COMPILE) -c `$(CYGPATH_W) '$<'`
426 $(AM_V_CC)$(COMPILE) -c `$(CYGPATH_W) '$<'`
349427
350428 .c.lo:
351 $(LTCOMPILE) -c -o $@ $<
429 $(AM_V_CC)$(LTCOMPILE) -c -o $@ $<
352430
353431 mostlyclean-libtool:
354432 -rm -f *.lo
356434 clean-libtool:
357435 -rm -rf .libs _libs
358436
359 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 mkid -fID $$unique
367 tags: TAGS
368
369 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
370 $(TAGS_FILES) $(LISP)
437 ID: $(am__tagged_files)
438 $(am__define_uniq_tagged_files); mkid -fID $$unique
439 tags: tags-am
440 TAGS: tags
441
442 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
371443 set x; \
372444 here=`pwd`; \
373 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
374 unique=`for i in $$list; do \
375 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
376 done | \
377 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
378 END { if (nonempty) { for (i in files) print i; }; }'`; \
445 $(am__define_uniq_tagged_files); \
379446 shift; \
380447 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
381448 test -n "$$unique" || unique=$$empty_fix; \
387454 $$unique; \
388455 fi; \
389456 fi
390 ctags: CTAGS
391 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
392 $(TAGS_FILES) $(LISP)
393 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
394 unique=`for i in $$list; do \
395 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
396 done | \
397 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
398 END { if (nonempty) { for (i in files) print i; }; }'`; \
457 ctags: ctags-am
458
459 CTAGS: ctags
460 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
461 $(am__define_uniq_tagged_files); \
399462 test -z "$(CTAGS_ARGS)$$unique" \
400463 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
401464 $$unique
404467 here=`$(am__cd) $(top_builddir) && pwd` \
405468 && $(am__cd) $(top_srcdir) \
406469 && gtags -i $(GTAGS_ARGS) "$$here"
470 cscopelist: cscopelist-am
471
472 cscopelist-am: $(am__tagged_files)
473 list='$(am__tagged_files)'; \
474 case "$(srcdir)" in \
475 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
476 *) sdir=$(subdir)/$(srcdir) ;; \
477 esac; \
478 for i in $$list; do \
479 if test -f "$$i"; then \
480 echo "$(subdir)/$$i"; \
481 else \
482 echo "$$sdir/$$i"; \
483 fi; \
484 done >> $(top_builddir)/cscope.files
407485
408486 distclean-tags:
409487 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
544622
545623 .MAKE: install-am install-strip
546624
547 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
548 clean-libtool clean-noinstPROGRAMS ctags distclean \
549 distclean-compile distclean-generic distclean-libtool \
550 distclean-tags distdir dvi dvi-am html html-am info info-am \
551 install install-am install-data install-data-am install-dvi \
552 install-dvi-am install-exec install-exec-am install-html \
553 install-html-am install-info install-info-am install-man \
554 install-pdf install-pdf-am install-ps install-ps-am \
555 install-strip installcheck installcheck-am installdirs \
556 maintainer-clean maintainer-clean-generic mostlyclean \
557 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
558 pdf pdf-am ps ps-am tags uninstall uninstall-am
625 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
626 clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \
627 ctags-am distclean distclean-compile distclean-generic \
628 distclean-libtool distclean-tags distdir dvi dvi-am html \
629 html-am info info-am install install-am install-data \
630 install-data-am install-dvi install-dvi-am install-exec \
631 install-exec-am install-html install-html-am install-info \
632 install-info-am install-man install-pdf install-pdf-am \
633 install-ps install-ps-am install-strip installcheck \
634 installcheck-am installdirs maintainer-clean \
635 maintainer-clean-generic mostlyclean mostlyclean-compile \
636 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
637 tags tags-am uninstall uninstall-am
559638
560639
561640 verify:
131131 while (evbuffer_get_length(buf)) {
132132 int n;
133133 char cbuf[128];
134 n = evbuffer_remove(buf, cbuf, sizeof(buf)-1);
134 n = evbuffer_remove(buf, cbuf, sizeof(cbuf));
135135 if (n > 0)
136136 (void) fwrite(cbuf, 1, n, stdout);
137137 }
1818 EXTRA_PROGRAMS = regress
1919 noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h
2020
21 TESTS = $(top_srcdir)/test/test.sh
21 # We need to copy this file, since automake doesn't want us to use top_srcdir
22 # in TESTS.
23 TESTS = test-script.sh
24
25 test-script.sh: test.sh
26 cp $< $@
27
28 DISTCLEANFILES = test-script.sh
2229
2330 BUILT_SOURCES =
2431 if BUILD_REGRESS
9097
9198 CLEANFILES = rpcgen-attempted
9299
93 DISTCLEANFILES = *~
100 DISTCLEANFILES += *~
94101
95102 verify: check
96103
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2221
2322
2423 VPATH = @srcdir@
25 am__make_dryrun = \
26 { \
27 am__dry=no; \
24 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
25 am__make_running_with_option = \
26 case $${target_option-} in \
27 ?) ;; \
28 *) echo "am__make_running_with_option: internal error: invalid" \
29 "target option '$${target_option-}' specified" >&2; \
30 exit 1;; \
31 esac; \
32 has_opt=no; \
33 sane_makeflags=$$MAKEFLAGS; \
34 if $(am__is_gnu_make); then \
35 sane_makeflags=$$MFLAGS; \
36 else \
2837 case $$MAKEFLAGS in \
2938 *\\[\ \ ]*) \
30 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
31 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
32 *) \
33 for am__flg in $$MAKEFLAGS; do \
34 case $$am__flg in \
35 *=*|--*) ;; \
36 *n*) am__dry=yes; break;; \
37 esac; \
38 done;; \
39 bs=\\; \
40 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
41 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3942 esac; \
40 test $$am__dry = yes; \
41 }
43 fi; \
44 skip_next=no; \
45 strip_trailopt () \
46 { \
47 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
48 }; \
49 for flg in $$sane_makeflags; do \
50 test $$skip_next = yes && { skip_next=no; continue; }; \
51 case $$flg in \
52 *=*|--*) continue;; \
53 -*I) strip_trailopt 'I'; skip_next=yes;; \
54 -*I?*) strip_trailopt 'I';; \
55 -*O) strip_trailopt 'O'; skip_next=yes;; \
56 -*O?*) strip_trailopt 'O';; \
57 -*l) strip_trailopt 'l'; skip_next=yes;; \
58 -*l?*) strip_trailopt 'l';; \
59 -[dEDm]) skip_next=yes;; \
60 -[JT]) skip_next=yes;; \
61 esac; \
62 case $$flg in \
63 *$$target_option*) has_opt=yes; break;; \
64 esac; \
65 done; \
66 test $$has_opt = yes
67 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
68 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4269 pkgdatadir = $(datadir)/@PACKAGE@
4370 pkgincludedir = $(includedir)/@PACKAGE@
4471 pkglibdir = $(libdir)/@PACKAGE@
7097 @OPENSSL_TRUE@am__append_5 = regress_ssl.c
7198 @OPENSSL_TRUE@am__append_6 = ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
7299 subdir = test
73 DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
74 $(srcdir)/Makefile.in
100 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
101 $(top_srcdir)/../depcomp $(noinst_HEADERS) \
102 $(top_srcdir)/../test-driver
75103 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
76 am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
77 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
78 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
79 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in
104 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \
105 $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
106 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
107 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
108 $(top_srcdir)/configure.ac
80109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
81110 $(ACLOCAL_M4)
82111 mkinstalldirs = $(install_sh) -d
89118 bench_OBJECTS = $(am_bench_OBJECTS)
90119 am__DEPENDENCIES_1 =
91120 bench_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la
121 AM_V_lt = $(am__v_lt_@AM_V@)
122 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
123 am__v_lt_0 = --silent
124 am__v_lt_1 =
92125 am_bench_cascade_OBJECTS = bench_cascade.$(OBJEXT)
93126 bench_cascade_OBJECTS = $(am_bench_cascade_OBJECTS)
94127 bench_cascade_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la
129162 regress_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la \
130163 $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) \
131164 $(am__DEPENDENCIES_3)
132 regress_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
133 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(regress_LDFLAGS) \
134 $(LDFLAGS) -o $@
165 regress_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
166 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
167 $(regress_LDFLAGS) $(LDFLAGS) -o $@
135168 am_test_changelist_OBJECTS = test-changelist.$(OBJEXT)
136169 test_changelist_OBJECTS = $(am_test_changelist_OBJECTS)
137170 test_changelist_DEPENDENCIES = ../libevent_core.la
150183 am_test_weof_OBJECTS = test-weof.$(OBJEXT)
151184 test_weof_OBJECTS = $(am_test_weof_OBJECTS)
152185 test_weof_DEPENDENCIES = ../libevent_core.la
186 AM_V_P = $(am__v_P_@AM_V@)
187 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
188 am__v_P_0 = false
189 am__v_P_1 = :
190 AM_V_GEN = $(am__v_GEN_@AM_V@)
191 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
192 am__v_GEN_0 = @echo " GEN " $@;
193 am__v_GEN_1 =
194 AM_V_at = $(am__v_at_@AM_V@)
195 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
196 am__v_at_0 = @
197 am__v_at_1 =
153198 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
154199 depcomp = $(SHELL) $(top_srcdir)/../depcomp
155200 am__depfiles_maybe = depfiles
156201 am__mv = mv -f
157202 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
158203 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
159 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
160 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
161 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
204 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
205 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
206 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
207 $(AM_CFLAGS) $(CFLAGS)
208 AM_V_CC = $(am__v_CC_@AM_V@)
209 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
210 am__v_CC_0 = @echo " CC " $@;
211 am__v_CC_1 =
162212 CCLD = $(CC)
163 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
164 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
165 $(LDFLAGS) -o $@
213 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
214 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
215 $(AM_LDFLAGS) $(LDFLAGS) -o $@
216 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
217 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
218 am__v_CCLD_0 = @echo " CCLD " $@;
219 am__v_CCLD_1 =
166220 SOURCES = $(bench_SOURCES) $(bench_cascade_SOURCES) \
167221 $(bench_http_SOURCES) $(bench_httpclient_SOURCES) \
168222 $(regress_SOURCES) $(test_changelist_SOURCES) \
181235 *) (install-info --version) >/dev/null 2>&1;; \
182236 esac
183237 HEADERS = $(noinst_HEADERS)
238 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
239 # Read a list of newline-separated strings from the standard input,
240 # and print each of them once, without duplicates. Input order is
241 # *not* preserved.
242 am__uniquify_input = $(AWK) '\
243 BEGIN { nonempty = 0; } \
244 { items[$$0] = 1; nonempty = 1; } \
245 END { if (nonempty) { for (i in items) print i; }; } \
246 '
247 # Make sure the list of sources is unique. This is necessary because,
248 # e.g., the same source file might be shared among _SOURCES variables
249 # for different programs/libraries.
250 am__define_uniq_tagged_files = \
251 list='$(am__tagged_files)'; \
252 unique=`for i in $$list; do \
253 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
254 done | $(am__uniquify_input)`
184255 ETAGS = etags
185256 CTAGS = ctags
186 am__tty_colors = \
187 red=; grn=; lgn=; blu=; std=
257 am__tty_colors_dummy = \
258 mgn= red= grn= lgn= blu= brg= std=; \
259 am__color_tests=no
260 am__tty_colors = { \
261 $(am__tty_colors_dummy); \
262 if test "X$(AM_COLOR_TESTS)" = Xno; then \
263 am__color_tests=no; \
264 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
265 am__color_tests=yes; \
266 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
267 am__color_tests=yes; \
268 fi; \
269 if test $$am__color_tests = yes; then \
270 red=''; \
271 grn=''; \
272 lgn=''; \
273 blu=''; \
274 mgn=''; \
275 brg=''; \
276 std=''; \
277 fi; \
278 }
279 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
280 am__vpath_adj = case $$p in \
281 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
282 *) f=$$p;; \
283 esac;
284 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
285 am__install_max = 40
286 am__nobase_strip_setup = \
287 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
288 am__nobase_strip = \
289 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
290 am__nobase_list = $(am__nobase_strip_setup); \
291 for p in $$list; do echo "$$p $$p"; done | \
292 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
293 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
294 if (++n[$$2] == $(am__install_max)) \
295 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
296 END { for (dir in files) print dir, files[dir] }'
297 am__base_list = \
298 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
299 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
300 am__uninstall_files_from_dir = { \
301 test -z "$$files" \
302 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
303 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
304 $(am__cd) "$$dir" && rm -f $$files; }; \
305 }
306 am__recheck_rx = ^[ ]*:recheck:[ ]*
307 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
308 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
309 # A command that, given a newline-separated list of test names on the
310 # standard input, print the name of the tests that are to be re-run
311 # upon "make recheck".
312 am__list_recheck_tests = $(AWK) '{ \
313 recheck = 1; \
314 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
315 { \
316 if (rc < 0) \
317 { \
318 if ((getline line2 < ($$0 ".log")) < 0) \
319 recheck = 0; \
320 break; \
321 } \
322 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
323 { \
324 recheck = 0; \
325 break; \
326 } \
327 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
328 { \
329 break; \
330 } \
331 }; \
332 if (recheck) \
333 print $$0; \
334 close ($$0 ".trs"); \
335 close ($$0 ".log"); \
336 }'
337 # A command that, given a newline-separated list of test names on the
338 # standard input, create the global log from their .trs and .log files.
339 am__create_global_log = $(AWK) ' \
340 function fatal(msg) \
341 { \
342 print "fatal: making $@: " msg | "cat >&2"; \
343 exit 1; \
344 } \
345 function rst_section(header) \
346 { \
347 print header; \
348 len = length(header); \
349 for (i = 1; i <= len; i = i + 1) \
350 printf "="; \
351 printf "\n\n"; \
352 } \
353 { \
354 copy_in_global_log = 1; \
355 global_test_result = "RUN"; \
356 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
357 { \
358 if (rc < 0) \
359 fatal("failed to read from " $$0 ".trs"); \
360 if (line ~ /$(am__global_test_result_rx)/) \
361 { \
362 sub("$(am__global_test_result_rx)", "", line); \
363 sub("[ ]*$$", "", line); \
364 global_test_result = line; \
365 } \
366 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
367 copy_in_global_log = 0; \
368 }; \
369 if (copy_in_global_log) \
370 { \
371 rst_section(global_test_result ": " $$0); \
372 while ((rc = (getline line < ($$0 ".log"))) != 0) \
373 { \
374 if (rc < 0) \
375 fatal("failed to read from " $$0 ".log"); \
376 print line; \
377 }; \
378 printf "\n"; \
379 }; \
380 close ($$0 ".trs"); \
381 close ($$0 ".log"); \
382 }'
383 # Restructured Text title.
384 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
385 # Solaris 10 'make', and several other traditional 'make' implementations,
386 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
387 # by disabling -e (using the XSI extension "set +e") if it's set.
388 am__sh_e_setup = case $$- in *e*) set +e;; esac
389 # Default flags passed to test drivers.
390 am__common_driver_flags = \
391 --color-tests "$$am__color_tests" \
392 --enable-hard-errors "$$am__enable_hard_errors" \
393 --expect-failure "$$am__expect_failure"
394 # To be inserted before the command running the test. Creates the
395 # directory for the log if needed. Stores in $dir the directory
396 # containing $f, in $tst the test, in $log the log. Executes the
397 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
398 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
399 # will run the test scripts (or their associated LOG_COMPILER, if
400 # thy have one).
401 am__check_pre = \
402 $(am__sh_e_setup); \
403 $(am__vpath_adj_setup) $(am__vpath_adj) \
404 $(am__tty_colors); \
405 srcdir=$(srcdir); export srcdir; \
406 case "$@" in \
407 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
408 *) am__odir=.;; \
409 esac; \
410 test "x$$am__odir" = x"." || test -d "$$am__odir" \
411 || $(MKDIR_P) "$$am__odir" || exit $$?; \
412 if test -f "./$$f"; then dir=./; \
413 elif test -f "$$f"; then dir=; \
414 else dir="$(srcdir)/"; fi; \
415 tst=$$dir$$f; log='$@'; \
416 if test -n '$(DISABLE_HARD_ERRORS)'; then \
417 am__enable_hard_errors=no; \
418 else \
419 am__enable_hard_errors=yes; \
420 fi; \
421 case " $(XFAIL_TESTS) " in \
422 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
423 am__expect_failure=yes;; \
424 *) \
425 am__expect_failure=no;; \
426 esac; \
427 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
428 # A shell command to get the names of the tests scripts with any registered
429 # extension removed (i.e., equivalently, the names of the test logs, with
430 # the '.log' extension removed). The result is saved in the shell variable
431 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
432 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
433 # since that might cause problem with VPATH rewrites for suffix-less tests.
434 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
435 am__set_TESTS_bases = \
436 bases='$(TEST_LOGS)'; \
437 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
438 bases=`echo $$bases`
439 RECHECK_LOGS = $(TEST_LOGS)
440 AM_RECURSIVE_TARGETS = check recheck
441 TEST_SUITE_LOG = test-suite.log
442 TEST_EXTENSIONS = @EXEEXT@ .test
443 LOG_DRIVER = $(SHELL) $(top_srcdir)/../test-driver
444 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
445 am__set_b = \
446 case '$@' in \
447 */*) \
448 case '$*' in \
449 */*) b='$*';; \
450 *) b=`echo '$@' | sed 's/\.log$$//'`; \
451 esac;; \
452 *) \
453 b='$*';; \
454 esac
455 am__test_logs1 = $(TESTS:=.log)
456 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
457 TEST_LOGS = $(am__test_logs2:.test.log=.log)
458 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/../test-driver
459 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
460 $(TEST_LOG_FLAGS)
188461 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
189462 ACLOCAL = @ACLOCAL@
190463 AMTAR = @AMTAR@
464 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
191465 AR = @AR@
192466 AUTOCONF = @AUTOCONF@
193467 AUTOHEADER = @AUTOHEADER@
314588 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include -DTINYTEST_LOCAL
315589 EXTRA_DIST = regress.rpc regress.gen.h regress.gen.c rpcgen_wrapper.sh test.sh
316590 noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h
317 TESTS = $(top_srcdir)/test/test.sh
591
592 # We need to copy this file, since automake doesn't want us to use top_srcdir
593 # in TESTS.
594 TESTS = test-script.sh
595 DISTCLEANFILES = test-script.sh *~
318596 BUILT_SOURCES = $(am__append_2)
319597 test_init_SOURCES = test-init.c
320598 test_init_LDADD = ../libevent_core.la
351629 bench_httpclient_SOURCES = bench_httpclient.c
352630 bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent_core.la
353631 CLEANFILES = rpcgen-attempted
354 DISTCLEANFILES = *~
355632 all: $(BUILT_SOURCES)
356633 $(MAKE) $(AM_MAKEFLAGS) all-am
357634
358635 .SUFFIXES:
359 .SUFFIXES: .c .lo .o .obj
636 .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
360637 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
361638 @for dep in $?; do \
362639 case '$(am__configure_deps)' in \
396673 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
397674 echo " rm -f" $$list; \
398675 rm -f $$list
676
399677 bench$(EXEEXT): $(bench_OBJECTS) $(bench_DEPENDENCIES) $(EXTRA_bench_DEPENDENCIES)
400678 @rm -f bench$(EXEEXT)
401 $(LINK) $(bench_OBJECTS) $(bench_LDADD) $(LIBS)
679 $(AM_V_CCLD)$(LINK) $(bench_OBJECTS) $(bench_LDADD) $(LIBS)
680
402681 bench_cascade$(EXEEXT): $(bench_cascade_OBJECTS) $(bench_cascade_DEPENDENCIES) $(EXTRA_bench_cascade_DEPENDENCIES)
403682 @rm -f bench_cascade$(EXEEXT)
404 $(LINK) $(bench_cascade_OBJECTS) $(bench_cascade_LDADD) $(LIBS)
683 $(AM_V_CCLD)$(LINK) $(bench_cascade_OBJECTS) $(bench_cascade_LDADD) $(LIBS)
684
405685 bench_http$(EXEEXT): $(bench_http_OBJECTS) $(bench_http_DEPENDENCIES) $(EXTRA_bench_http_DEPENDENCIES)
406686 @rm -f bench_http$(EXEEXT)
407 $(LINK) $(bench_http_OBJECTS) $(bench_http_LDADD) $(LIBS)
687 $(AM_V_CCLD)$(LINK) $(bench_http_OBJECTS) $(bench_http_LDADD) $(LIBS)
688
408689 bench_httpclient$(EXEEXT): $(bench_httpclient_OBJECTS) $(bench_httpclient_DEPENDENCIES) $(EXTRA_bench_httpclient_DEPENDENCIES)
409690 @rm -f bench_httpclient$(EXEEXT)
410 $(LINK) $(bench_httpclient_OBJECTS) $(bench_httpclient_LDADD) $(LIBS)
691 $(AM_V_CCLD)$(LINK) $(bench_httpclient_OBJECTS) $(bench_httpclient_LDADD) $(LIBS)
692
411693 regress$(EXEEXT): $(regress_OBJECTS) $(regress_DEPENDENCIES) $(EXTRA_regress_DEPENDENCIES)
412694 @rm -f regress$(EXEEXT)
413 $(regress_LINK) $(regress_OBJECTS) $(regress_LDADD) $(LIBS)
695 $(AM_V_CCLD)$(regress_LINK) $(regress_OBJECTS) $(regress_LDADD) $(LIBS)
696
414697 test-changelist$(EXEEXT): $(test_changelist_OBJECTS) $(test_changelist_DEPENDENCIES) $(EXTRA_test_changelist_DEPENDENCIES)
415698 @rm -f test-changelist$(EXEEXT)
416 $(LINK) $(test_changelist_OBJECTS) $(test_changelist_LDADD) $(LIBS)
699 $(AM_V_CCLD)$(LINK) $(test_changelist_OBJECTS) $(test_changelist_LDADD) $(LIBS)
700
417701 test-eof$(EXEEXT): $(test_eof_OBJECTS) $(test_eof_DEPENDENCIES) $(EXTRA_test_eof_DEPENDENCIES)
418702 @rm -f test-eof$(EXEEXT)
419 $(LINK) $(test_eof_OBJECTS) $(test_eof_LDADD) $(LIBS)
703 $(AM_V_CCLD)$(LINK) $(test_eof_OBJECTS) $(test_eof_LDADD) $(LIBS)
704
420705 test-init$(EXEEXT): $(test_init_OBJECTS) $(test_init_DEPENDENCIES) $(EXTRA_test_init_DEPENDENCIES)
421706 @rm -f test-init$(EXEEXT)
422 $(LINK) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS)
707 $(AM_V_CCLD)$(LINK) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS)
708
423709 test-ratelim$(EXEEXT): $(test_ratelim_OBJECTS) $(test_ratelim_DEPENDENCIES) $(EXTRA_test_ratelim_DEPENDENCIES)
424710 @rm -f test-ratelim$(EXEEXT)
425 $(LINK) $(test_ratelim_OBJECTS) $(test_ratelim_LDADD) $(LIBS)
711 $(AM_V_CCLD)$(LINK) $(test_ratelim_OBJECTS) $(test_ratelim_LDADD) $(LIBS)
712
426713 test-time$(EXEEXT): $(test_time_OBJECTS) $(test_time_DEPENDENCIES) $(EXTRA_test_time_DEPENDENCIES)
427714 @rm -f test-time$(EXEEXT)
428 $(LINK) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS)
715 $(AM_V_CCLD)$(LINK) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS)
716
429717 test-weof$(EXEEXT): $(test_weof_OBJECTS) $(test_weof_DEPENDENCIES) $(EXTRA_test_weof_DEPENDENCIES)
430718 @rm -f test-weof$(EXEEXT)
431 $(LINK) $(test_weof_OBJECTS) $(test_weof_LDADD) $(LIBS)
719 $(AM_V_CCLD)$(LINK) $(test_weof_OBJECTS) $(test_weof_LDADD) $(LIBS)
432720
433721 mostlyclean-compile:
434722 -rm -f *.$(OBJEXT)
466754 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-weof.Po@am__quote@
467755
468756 .c.o:
469 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
470 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
471 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
472 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
473 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
757 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
758 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
759 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
760 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
761 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
474762
475763 .c.obj:
476 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
477 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
478 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
479 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
480 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
764 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
765 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
766 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
767 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
768 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
481769
482770 .c.lo:
483 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
484 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
485 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
486 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
487 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
771 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
772 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
773 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
774 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
775 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
488776
489777 regress-regress.o: regress.c
490 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.o -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c
491 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po
492 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.c' object='regress-regress.o' libtool=no @AMDEPBACKSLASH@
493 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
494 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c
778 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.o -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c
779 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po
780 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.c' object='regress-regress.o' libtool=no @AMDEPBACKSLASH@
781 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
782 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c
495783
496784 regress-regress.obj: regress.c
497 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.obj -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi`
498 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po
499 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.c' object='regress-regress.obj' libtool=no @AMDEPBACKSLASH@
500 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
501 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi`
785 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.obj -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi`
786 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po
787 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.c' object='regress-regress.obj' libtool=no @AMDEPBACKSLASH@
788 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
789 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi`
502790
503791 regress-regress_buffer.o: regress_buffer.c
504 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.o -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c
505 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po
506 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_buffer.c' object='regress-regress_buffer.o' libtool=no @AMDEPBACKSLASH@
507 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
508 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c
792 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.o -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c
793 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po
794 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_buffer.c' object='regress-regress_buffer.o' libtool=no @AMDEPBACKSLASH@
795 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
796 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c
509797
510798 regress-regress_buffer.obj: regress_buffer.c
511 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.obj -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi`
512 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po
513 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_buffer.c' object='regress-regress_buffer.obj' libtool=no @AMDEPBACKSLASH@
514 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
515 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi`
799 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.obj -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi`
800 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po
801 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_buffer.c' object='regress-regress_buffer.obj' libtool=no @AMDEPBACKSLASH@
802 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
803 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi`
516804
517805 regress-regress_http.o: regress_http.c
518 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.o -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c
519 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po
520 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_http.c' object='regress-regress_http.o' libtool=no @AMDEPBACKSLASH@
521 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
522 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c
806 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.o -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c
807 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po
808 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_http.c' object='regress-regress_http.o' libtool=no @AMDEPBACKSLASH@
809 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
810 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c
523811
524812 regress-regress_http.obj: regress_http.c
525 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.obj -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi`
526 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po
527 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_http.c' object='regress-regress_http.obj' libtool=no @AMDEPBACKSLASH@
528 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi`
813 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.obj -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi`
814 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po
815 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_http.c' object='regress-regress_http.obj' libtool=no @AMDEPBACKSLASH@
816 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
817 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi`
530818
531819 regress-regress_dns.o: regress_dns.c
532 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.o -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c
533 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po
534 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_dns.c' object='regress-regress_dns.o' libtool=no @AMDEPBACKSLASH@
535 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
536 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c
820 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.o -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c
821 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po
822 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_dns.c' object='regress-regress_dns.o' libtool=no @AMDEPBACKSLASH@
823 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
824 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c
537825
538826 regress-regress_dns.obj: regress_dns.c
539 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.obj -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi`
540 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po
541 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_dns.c' object='regress-regress_dns.obj' libtool=no @AMDEPBACKSLASH@
542 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
543 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi`
827 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.obj -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi`
828 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po
829 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_dns.c' object='regress-regress_dns.obj' libtool=no @AMDEPBACKSLASH@
830 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
831 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi`
544832
545833 regress-regress_testutils.o: regress_testutils.c
546 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.o -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c
547 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po
548 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_testutils.c' object='regress-regress_testutils.o' libtool=no @AMDEPBACKSLASH@
549 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
550 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c
834 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.o -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c
835 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po
836 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_testutils.c' object='regress-regress_testutils.o' libtool=no @AMDEPBACKSLASH@
837 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
838 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c
551839
552840 regress-regress_testutils.obj: regress_testutils.c
553 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.obj -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi`
554 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po
555 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_testutils.c' object='regress-regress_testutils.obj' libtool=no @AMDEPBACKSLASH@
556 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
557 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi`
841 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.obj -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi`
842 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po
843 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_testutils.c' object='regress-regress_testutils.obj' libtool=no @AMDEPBACKSLASH@
844 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
845 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi`
558846
559847 regress-regress_rpc.o: regress_rpc.c
560 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.o -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c
561 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po
562 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_rpc.c' object='regress-regress_rpc.o' libtool=no @AMDEPBACKSLASH@
563 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
564 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c
848 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.o -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c
849 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po
850 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_rpc.c' object='regress-regress_rpc.o' libtool=no @AMDEPBACKSLASH@
851 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
852 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c
565853
566854 regress-regress_rpc.obj: regress_rpc.c
567 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.obj -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi`
568 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po
569 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_rpc.c' object='regress-regress_rpc.obj' libtool=no @AMDEPBACKSLASH@
570 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
571 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi`
855 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.obj -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi`
856 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po
857 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_rpc.c' object='regress-regress_rpc.obj' libtool=no @AMDEPBACKSLASH@
858 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
859 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi`
572860
573861 regress-regress.gen.o: regress.gen.c
574 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.o -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c
575 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po
576 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.gen.c' object='regress-regress.gen.o' libtool=no @AMDEPBACKSLASH@
577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
578 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c
862 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.o -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c
863 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po
864 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.gen.c' object='regress-regress.gen.o' libtool=no @AMDEPBACKSLASH@
865 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
866 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c
579867
580868 regress-regress.gen.obj: regress.gen.c
581 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.obj -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi`
582 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po
583 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.gen.c' object='regress-regress.gen.obj' libtool=no @AMDEPBACKSLASH@
584 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
585 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi`
869 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.obj -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi`
870 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po
871 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.gen.c' object='regress-regress.gen.obj' libtool=no @AMDEPBACKSLASH@
872 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
873 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi`
586874
587875 regress-regress_et.o: regress_et.c
588 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.o -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c
589 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po
590 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_et.c' object='regress-regress_et.o' libtool=no @AMDEPBACKSLASH@
591 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
592 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c
876 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.o -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c
877 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po
878 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_et.c' object='regress-regress_et.o' libtool=no @AMDEPBACKSLASH@
879 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
880 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c
593881
594882 regress-regress_et.obj: regress_et.c
595 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.obj -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi`
596 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po
597 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_et.c' object='regress-regress_et.obj' libtool=no @AMDEPBACKSLASH@
598 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
599 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi`
883 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.obj -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi`
884 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po
885 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_et.c' object='regress-regress_et.obj' libtool=no @AMDEPBACKSLASH@
886 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
887 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi`
600888
601889 regress-regress_bufferevent.o: regress_bufferevent.c
602 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.o -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c
603 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po
604 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_bufferevent.c' object='regress-regress_bufferevent.o' libtool=no @AMDEPBACKSLASH@
605 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
606 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c
890 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.o -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c
891 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po
892 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_bufferevent.c' object='regress-regress_bufferevent.o' libtool=no @AMDEPBACKSLASH@
893 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
894 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c
607895
608896 regress-regress_bufferevent.obj: regress_bufferevent.c
609 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.obj -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi`
610 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po
611 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_bufferevent.c' object='regress-regress_bufferevent.obj' libtool=no @AMDEPBACKSLASH@
612 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
613 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi`
897 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.obj -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi`
898 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po
899 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_bufferevent.c' object='regress-regress_bufferevent.obj' libtool=no @AMDEPBACKSLASH@
900 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
901 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi`
614902
615903 regress-regress_listener.o: regress_listener.c
616 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.o -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c
617 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po
618 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_listener.c' object='regress-regress_listener.o' libtool=no @AMDEPBACKSLASH@
619 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
620 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c
904 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.o -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c
905 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po
906 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_listener.c' object='regress-regress_listener.o' libtool=no @AMDEPBACKSLASH@
907 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
908 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c
621909
622910 regress-regress_listener.obj: regress_listener.c
623 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.obj -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi`
624 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po
625 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_listener.c' object='regress-regress_listener.obj' libtool=no @AMDEPBACKSLASH@
626 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
627 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi`
911 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.obj -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi`
912 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po
913 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_listener.c' object='regress-regress_listener.obj' libtool=no @AMDEPBACKSLASH@
914 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
915 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi`
628916
629917 regress-regress_util.o: regress_util.c
630 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.o -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c
631 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po
632 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_util.c' object='regress-regress_util.o' libtool=no @AMDEPBACKSLASH@
633 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
634 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c
918 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.o -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c
919 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po
920 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_util.c' object='regress-regress_util.o' libtool=no @AMDEPBACKSLASH@
921 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
922 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c
635923
636924 regress-regress_util.obj: regress_util.c
637 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.obj -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi`
638 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po
639 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_util.c' object='regress-regress_util.obj' libtool=no @AMDEPBACKSLASH@
640 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
641 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi`
925 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.obj -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi`
926 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po
927 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_util.c' object='regress-regress_util.obj' libtool=no @AMDEPBACKSLASH@
928 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
929 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi`
642930
643931 regress-tinytest.o: tinytest.c
644 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.o -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c
645 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po
646 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tinytest.c' object='regress-tinytest.o' libtool=no @AMDEPBACKSLASH@
647 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
648 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c
932 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.o -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c
933 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po
934 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tinytest.c' object='regress-tinytest.o' libtool=no @AMDEPBACKSLASH@
935 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
936 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c
649937
650938 regress-tinytest.obj: tinytest.c
651 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.obj -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi`
652 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po
653 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tinytest.c' object='regress-tinytest.obj' libtool=no @AMDEPBACKSLASH@
654 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
655 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi`
939 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.obj -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi`
940 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po
941 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tinytest.c' object='regress-tinytest.obj' libtool=no @AMDEPBACKSLASH@
942 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
943 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi`
656944
657945 regress-regress_main.o: regress_main.c
658 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.o -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c
659 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po
660 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_main.c' object='regress-regress_main.o' libtool=no @AMDEPBACKSLASH@
661 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
662 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c
946 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.o -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c
947 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po
948 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_main.c' object='regress-regress_main.o' libtool=no @AMDEPBACKSLASH@
949 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
950 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c
663951
664952 regress-regress_main.obj: regress_main.c
665 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.obj -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi`
666 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po
667 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_main.c' object='regress-regress_main.obj' libtool=no @AMDEPBACKSLASH@
668 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
669 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi`
953 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.obj -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi`
954 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po
955 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_main.c' object='regress-regress_main.obj' libtool=no @AMDEPBACKSLASH@
956 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
957 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi`
670958
671959 regress-regress_minheap.o: regress_minheap.c
672 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.o -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c
673 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po
674 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_minheap.c' object='regress-regress_minheap.o' libtool=no @AMDEPBACKSLASH@
675 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
676 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c
960 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.o -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c
961 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po
962 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_minheap.c' object='regress-regress_minheap.o' libtool=no @AMDEPBACKSLASH@
963 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
964 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c
677965
678966 regress-regress_minheap.obj: regress_minheap.c
679 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.obj -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi`
680 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po
681 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_minheap.c' object='regress-regress_minheap.obj' libtool=no @AMDEPBACKSLASH@
682 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
683 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi`
967 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.obj -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi`
968 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po
969 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_minheap.c' object='regress-regress_minheap.obj' libtool=no @AMDEPBACKSLASH@
970 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
971 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi`
684972
685973 regress-regress_thread.o: regress_thread.c
686 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.o -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c
687 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po
688 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_thread.c' object='regress-regress_thread.o' libtool=no @AMDEPBACKSLASH@
689 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
690 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c
974 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.o -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c
975 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po
976 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_thread.c' object='regress-regress_thread.o' libtool=no @AMDEPBACKSLASH@
977 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
978 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c
691979
692980 regress-regress_thread.obj: regress_thread.c
693 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.obj -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi`
694 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po
695 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_thread.c' object='regress-regress_thread.obj' libtool=no @AMDEPBACKSLASH@
696 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
697 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi`
981 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.obj -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi`
982 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po
983 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_thread.c' object='regress-regress_thread.obj' libtool=no @AMDEPBACKSLASH@
984 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
985 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi`
698986
699987 regress-regress_zlib.o: regress_zlib.c
700 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.o -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c
701 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po
702 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_zlib.c' object='regress-regress_zlib.o' libtool=no @AMDEPBACKSLASH@
703 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
704 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c
988 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.o -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c
989 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po
990 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_zlib.c' object='regress-regress_zlib.o' libtool=no @AMDEPBACKSLASH@
991 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
992 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c
705993
706994 regress-regress_zlib.obj: regress_zlib.c
707 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.obj -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi`
708 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po
709 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_zlib.c' object='regress-regress_zlib.obj' libtool=no @AMDEPBACKSLASH@
710 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
711 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi`
995 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.obj -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi`
996 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po
997 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_zlib.c' object='regress-regress_zlib.obj' libtool=no @AMDEPBACKSLASH@
998 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
999 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi`
7121000
7131001 regress-regress_iocp.o: regress_iocp.c
714 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.o -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c
715 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po
716 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_iocp.c' object='regress-regress_iocp.o' libtool=no @AMDEPBACKSLASH@
717 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
718 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c
1002 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.o -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c
1003 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po
1004 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_iocp.c' object='regress-regress_iocp.o' libtool=no @AMDEPBACKSLASH@
1005 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1006 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c
7191007
7201008 regress-regress_iocp.obj: regress_iocp.c
721 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.obj -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi`
722 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po
723 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_iocp.c' object='regress-regress_iocp.obj' libtool=no @AMDEPBACKSLASH@
724 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
725 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi`
1009 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.obj -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi`
1010 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po
1011 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_iocp.c' object='regress-regress_iocp.obj' libtool=no @AMDEPBACKSLASH@
1012 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1013 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi`
7261014
7271015 regress-regress_ssl.o: regress_ssl.c
728 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.o -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c
729 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po
730 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_ssl.c' object='regress-regress_ssl.o' libtool=no @AMDEPBACKSLASH@
731 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
732 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c
1016 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.o -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c
1017 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po
1018 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_ssl.c' object='regress-regress_ssl.o' libtool=no @AMDEPBACKSLASH@
1019 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1020 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c
7331021
7341022 regress-regress_ssl.obj: regress_ssl.c
735 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.obj -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi`
736 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po
737 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_ssl.c' object='regress-regress_ssl.obj' libtool=no @AMDEPBACKSLASH@
738 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
739 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi`
1023 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.obj -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi`
1024 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po
1025 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_ssl.c' object='regress-regress_ssl.obj' libtool=no @AMDEPBACKSLASH@
1026 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1027 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi`
7401028
7411029 mostlyclean-libtool:
7421030 -rm -f *.lo
7441032 clean-libtool:
7451033 -rm -rf .libs _libs
7461034
747 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
748 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
749 unique=`for i in $$list; do \
750 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
751 done | \
752 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
753 END { if (nonempty) { for (i in files) print i; }; }'`; \
754 mkid -fID $$unique
755 tags: TAGS
756
757 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
758 $(TAGS_FILES) $(LISP)
1035 ID: $(am__tagged_files)
1036 $(am__define_uniq_tagged_files); mkid -fID $$unique
1037 tags: tags-am
1038 TAGS: tags
1039
1040 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
7591041 set x; \
7601042 here=`pwd`; \
761 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
762 unique=`for i in $$list; do \
763 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
764 done | \
765 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
766 END { if (nonempty) { for (i in files) print i; }; }'`; \
1043 $(am__define_uniq_tagged_files); \
7671044 shift; \
7681045 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
7691046 test -n "$$unique" || unique=$$empty_fix; \
7751052 $$unique; \
7761053 fi; \
7771054 fi
778 ctags: CTAGS
779 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
780 $(TAGS_FILES) $(LISP)
781 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
782 unique=`for i in $$list; do \
783 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
784 done | \
785 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
786 END { if (nonempty) { for (i in files) print i; }; }'`; \
1055 ctags: ctags-am
1056
1057 CTAGS: ctags
1058 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1059 $(am__define_uniq_tagged_files); \
7871060 test -z "$(CTAGS_ARGS)$$unique" \
7881061 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
7891062 $$unique
7921065 here=`$(am__cd) $(top_builddir) && pwd` \
7931066 && $(am__cd) $(top_srcdir) \
7941067 && gtags -i $(GTAGS_ARGS) "$$here"
1068 cscopelist: cscopelist-am
1069
1070 cscopelist-am: $(am__tagged_files)
1071 list='$(am__tagged_files)'; \
1072 case "$(srcdir)" in \
1073 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1074 *) sdir=$(subdir)/$(srcdir) ;; \
1075 esac; \
1076 for i in $$list; do \
1077 if test -f "$$i"; then \
1078 echo "$(subdir)/$$i"; \
1079 else \
1080 echo "$$sdir/$$i"; \
1081 fi; \
1082 done >> $(top_builddir)/cscope.files
7951083
7961084 distclean-tags:
7971085 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
7981086
799 check-TESTS: $(TESTS)
800 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
801 srcdir=$(srcdir); export srcdir; \
802 list=' $(TESTS) '; \
803 $(am__tty_colors); \
804 if test -n "$$list"; then \
805 for tst in $$list; do \
806 if test -f ./$$tst; then dir=./; \
807 elif test -f $$tst; then dir=; \
808 else dir="$(srcdir)/"; fi; \
809 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
810 all=`expr $$all + 1`; \
811 case " $(XFAIL_TESTS) " in \
812 *[\ \ ]$$tst[\ \ ]*) \
813 xpass=`expr $$xpass + 1`; \
814 failed=`expr $$failed + 1`; \
815 col=$$red; res=XPASS; \
816 ;; \
817 *) \
818 col=$$grn; res=PASS; \
819 ;; \
820 esac; \
821 elif test $$? -ne 77; then \
822 all=`expr $$all + 1`; \
823 case " $(XFAIL_TESTS) " in \
824 *[\ \ ]$$tst[\ \ ]*) \
825 xfail=`expr $$xfail + 1`; \
826 col=$$lgn; res=XFAIL; \
827 ;; \
828 *) \
829 failed=`expr $$failed + 1`; \
830 col=$$red; res=FAIL; \
831 ;; \
832 esac; \
1087 # Recover from deleted '.trs' file; this should ensure that
1088 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
1089 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
1090 # to avoid problems with "make -n".
1091 .log.trs:
1092 rm -f $< $@
1093 $(MAKE) $(AM_MAKEFLAGS) $<
1094
1095 # Leading 'am--fnord' is there to ensure the list of targets does not
1096 # expand to empty, as could happen e.g. with make check TESTS=''.
1097 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
1098 am--force-recheck:
1099 @:
1100
1101 $(TEST_SUITE_LOG): $(TEST_LOGS)
1102 @$(am__set_TESTS_bases); \
1103 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
1104 redo_bases=`for i in $$bases; do \
1105 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
1106 done`; \
1107 if test -n "$$redo_bases"; then \
1108 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
1109 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
1110 if $(am__make_dryrun); then :; else \
1111 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
1112 fi; \
1113 fi; \
1114 if test -n "$$am__remaking_logs"; then \
1115 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
1116 "recursion detected" >&2; \
1117 else \
1118 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
1119 fi; \
1120 if $(am__make_dryrun); then :; else \
1121 st=0; \
1122 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
1123 for i in $$redo_bases; do \
1124 test -f $$i.trs && test -r $$i.trs \
1125 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
1126 test -f $$i.log && test -r $$i.log \
1127 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
1128 done; \
1129 test $$st -eq 0 || exit 1; \
1130 fi
1131 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
1132 ws='[ ]'; \
1133 results=`for b in $$bases; do echo $$b.trs; done`; \
1134 test -n "$$results" || results=/dev/null; \
1135 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
1136 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
1137 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
1138 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
1139 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
1140 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
1141 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
1142 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
1143 success=true; \
1144 else \
1145 success=false; \
1146 fi; \
1147 br='==================='; br=$$br$$br$$br$$br; \
1148 result_count () \
1149 { \
1150 if test x"$$1" = x"--maybe-color"; then \
1151 maybe_colorize=yes; \
1152 elif test x"$$1" = x"--no-color"; then \
1153 maybe_colorize=no; \
8331154 else \
834 skip=`expr $$skip + 1`; \
835 col=$$blu; res=SKIP; \
1155 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
8361156 fi; \
837 echo "$${col}$$res$${std}: $$tst"; \
838 done; \
839 if test "$$all" -eq 1; then \
840 tests="test"; \
841 All=""; \
842 else \
843 tests="tests"; \
844 All="All "; \
845 fi; \
846 if test "$$failed" -eq 0; then \
847 if test "$$xfail" -eq 0; then \
848 banner="$$All$$all $$tests passed"; \
1157 shift; \
1158 desc=$$1 count=$$2; \
1159 if test $$maybe_colorize = yes && test $$count -gt 0; then \
1160 color_start=$$3 color_end=$$std; \
8491161 else \
850 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
851 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
1162 color_start= color_end=; \
8521163 fi; \
853 else \
854 if test "$$xpass" -eq 0; then \
855 banner="$$failed of $$all $$tests failed"; \
856 else \
857 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
858 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
859 fi; \
860 fi; \
861 dashes="$$banner"; \
862 skipped=""; \
863 if test "$$skip" -ne 0; then \
864 if test "$$skip" -eq 1; then \
865 skipped="($$skip test was not run)"; \
866 else \
867 skipped="($$skip tests were not run)"; \
868 fi; \
869 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
870 dashes="$$skipped"; \
871 fi; \
872 report=""; \
873 if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
874 report="Please report to $(PACKAGE_BUGREPORT)"; \
875 test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
876 dashes="$$report"; \
877 fi; \
878 dashes=`echo "$$dashes" | sed s/./=/g`; \
879 if test "$$failed" -eq 0; then \
880 col="$$grn"; \
881 else \
882 col="$$red"; \
883 fi; \
884 echo "$${col}$$dashes$${std}"; \
885 echo "$${col}$$banner$${std}"; \
886 test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
887 test -z "$$report" || echo "$${col}$$report$${std}"; \
888 echo "$${col}$$dashes$${std}"; \
889 test "$$failed" -eq 0; \
890 else :; fi
1164 echo "$${color_start}# $$desc $$count$${color_end}"; \
1165 }; \
1166 create_testsuite_report () \
1167 { \
1168 result_count $$1 "TOTAL:" $$all "$$brg"; \
1169 result_count $$1 "PASS: " $$pass "$$grn"; \
1170 result_count $$1 "SKIP: " $$skip "$$blu"; \
1171 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
1172 result_count $$1 "FAIL: " $$fail "$$red"; \
1173 result_count $$1 "XPASS:" $$xpass "$$red"; \
1174 result_count $$1 "ERROR:" $$error "$$mgn"; \
1175 }; \
1176 { \
1177 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
1178 $(am__rst_title); \
1179 create_testsuite_report --no-color; \
1180 echo; \
1181 echo ".. contents:: :depth: 2"; \
1182 echo; \
1183 for b in $$bases; do echo $$b; done \
1184 | $(am__create_global_log); \
1185 } >$(TEST_SUITE_LOG).tmp || exit 1; \
1186 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
1187 if $$success; then \
1188 col="$$grn"; \
1189 else \
1190 col="$$red"; \
1191 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
1192 fi; \
1193 echo "$${col}$$br$${std}"; \
1194 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
1195 echo "$${col}$$br$${std}"; \
1196 create_testsuite_report --maybe-color; \
1197 echo "$$col$$br$$std"; \
1198 if $$success; then :; else \
1199 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
1200 if test -n "$(PACKAGE_BUGREPORT)"; then \
1201 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
1202 fi; \
1203 echo "$$col$$br$$std"; \
1204 fi; \
1205 $$success || exit 1
1206
1207 check-TESTS:
1208 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
1209 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
1210 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1211 @set +e; $(am__set_TESTS_bases); \
1212 log_list=`for i in $$bases; do echo $$i.log; done`; \
1213 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
1214 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
1215 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
1216 exit $$?;
1217 recheck: all
1218 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1219 @set +e; $(am__set_TESTS_bases); \
1220 bases=`for i in $$bases; do echo $$i; done \
1221 | $(am__list_recheck_tests)` || exit 1; \
1222 log_list=`for i in $$bases; do echo $$i.log; done`; \
1223 log_list=`echo $$log_list`; \
1224 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
1225 am__force_recheck=am--force-recheck \
1226 TEST_LOGS="$$log_list"; \
1227 exit $$?
1228 test-script.sh.log: test-script.sh
1229 @p='test-script.sh'; \
1230 b='test-script.sh'; \
1231 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1232 --log-file $$b.log --trs-file $$b.trs \
1233 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1234 "$$tst" $(AM_TESTS_FD_REDIRECT)
1235 .test.log:
1236 @p='$<'; \
1237 $(am__set_b); \
1238 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1239 --log-file $$b.log --trs-file $$b.trs \
1240 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1241 "$$tst" $(AM_TESTS_FD_REDIRECT)
1242 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
1243 @am__EXEEXT_TRUE@ @p='$<'; \
1244 @am__EXEEXT_TRUE@ $(am__set_b); \
1245 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1246 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
1247 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1248 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
8911249
8921250 distdir: $(DISTFILES)
8931251 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
9461304 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
9471305 fi
9481306 mostlyclean-generic:
1307 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1308 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1309 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
9491310
9501311 clean-generic:
9511312 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
10321393
10331394 .MAKE: all check check-am install install-am install-strip
10341395
1035 .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
1036 clean-generic clean-libtool clean-noinstPROGRAMS ctags \
1037 distclean distclean-compile distclean-generic \
1396 .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
1397 clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \
1398 ctags ctags-am distclean distclean-compile distclean-generic \
10381399 distclean-libtool distclean-tags distdir dvi dvi-am html \
10391400 html-am info info-am install install-am install-data \
10401401 install-data-am install-dvi install-dvi-am install-exec \
10441405 installcheck-am installdirs maintainer-clean \
10451406 maintainer-clean-generic mostlyclean mostlyclean-compile \
10461407 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1047 tags uninstall uninstall-am
1048
1408 recheck tags tags-am uninstall uninstall-am
1409
1410
1411 test-script.sh: test.sh
1412 cp $< $@
10491413
10501414 regress.gen.c regress.gen.h: rpcgen-attempted
10511415
30123012 static void
30133013 http_connection_fail_done(struct evhttp_request *req, void *arg)
30143014 {
3015 struct evhttp_connection *evcon = arg;
3016 struct event_base *base = evhttp_connection_get_base(evcon);
3017
30153018 /* An ENETUNREACH error results in an unrecoverable
30163019 * evhttp_connection error (see evhttp_connection_fail()). The
30173020 * connection will be reset, and the user will be notified with a NULL
30183021 * req parameter. */
30193022 tt_assert(!req);
30203023
3024 evhttp_connection_free(evcon);
3025
30213026 test_ok = 1;
30223027
30233028 end:
3024 event_base_loopexit(arg, NULL);
3029 event_base_loopexit(base, NULL);
30253030 }
30263031
30273032 /* Test unrecoverable evhttp_connection errors by generating an ENETUNREACH
30523057 * server using our make request method.
30533058 */
30543059
3055 req = evhttp_request_new(http_connection_fail_done, data->base);
3060 req = evhttp_request_new(http_connection_fail_done, evcon);
30563061 tt_assert(req);
30573062
30583063 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/") == -1) {
30643069 tt_int_op(test_ok, ==, 1);
30653070
30663071 end:
3067 if (evcon)
3068 evhttp_connection_free(evcon);
3072 ;
30693073 }
30703074
30713075 static void
+155
-271
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2012-01-06.13; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
109 # it under the terms of the GNU General Public License as published by
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
89 \`g' are ignored when checking the name.
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
9061
9162 Send bug reports to <bug-automake@gnu.org>."
9263 exit $?
9869 ;;
9970
10071 -*)
101 echo 1>&2 "$0: Unknown \`$1' option"
102 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10374 exit 1
10475 ;;
10576
10677 esac
10778
108 # normalize program name to check for.
109 program=`echo "$1" | sed '
110 s/^gnu-//; t
111 s/^gnu//; t
112 s/^g//; t'`
113
114 # Now exit if we have it, but it failed. Also exit now if we
115 # don't have it and --version was passed (most likely to detect
116 # the program). This is about non-GNU programs, so use $1 not
117 # $program.
118 case $1 in
119 lex*|yacc*)
120 # Not GNU programs, they don't have --version.
121 ;;
122
123 *)
124 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
125 # We have it, but it failed.
126 exit 1
127 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
128 # Could not run --version or --help. This is probably someone
129 # running `$TOOL --version' or `$TOOL --help' to check whether
130 # $TOOL exists and not knowing $TOOL uses missing.
131 exit 1
132 fi
133 ;;
134 esac
135
136 # If it does not exist, or fails to run (possibly an outdated version),
137 # try to emulate it.
138 case $program in
139 aclocal*)
140 echo 1>&2 "\
141 WARNING: \`$1' is $msg. You should only need it if
142 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
143 to install the \`Automake' and \`Perl' packages. Grab them from
144 any GNU archive site."
145 touch aclocal.m4
146 ;;
147
148 autoconf*)
149 echo 1>&2 "\
150 WARNING: \`$1' is $msg. You should only need it if
151 you modified \`${configure_ac}'. You might want to install the
152 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
153 archive site."
154 touch configure
155 ;;
156
157 autoheader*)
158 echo 1>&2 "\
159 WARNING: \`$1' is $msg. You should only need it if
160 you modified \`acconfig.h' or \`${configure_ac}'. You might want
161 to install the \`Autoconf' and \`GNU m4' packages. Grab them
162 from any GNU archive site."
163 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
164 test -z "$files" && files="config.h"
165 touch_files=
166 for f in $files; do
167 case $f in
168 *:*) touch_files="$touch_files "`echo "$f" |
169 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
170 *) touch_files="$touch_files $f.in";;
171 esac
172 done
173 touch $touch_files
174 ;;
175
176 automake*)
177 echo 1>&2 "\
178 WARNING: \`$1' is $msg. You should only need it if
179 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
180 You might want to install the \`Automake' and \`Perl' packages.
181 Grab them from any GNU archive site."
182 find . -type f -name Makefile.am -print |
183 sed 's/\.am$/.in/' |
184 while read f; do touch "$f"; done
185 ;;
186
187 autom4te*)
188 echo 1>&2 "\
189 WARNING: \`$1' is needed, but is $msg.
190 You might have modified some files without having the
191 proper tools for further handling them.
192 You can get \`$1' as part of \`Autoconf' from any GNU
193 archive site."
194
195 file=`echo "$*" | sed -n "$sed_output"`
196 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
197 if test -f "$file"; then
198 touch $file
199 else
200 test -z "$file" || exec >$file
201 echo "#! /bin/sh"
202 echo "# Created by GNU Automake missing as a replacement of"
203 echo "# $ $@"
204 echo "exit 0"
205 chmod +x $file
206 exit 1
207 fi
208 ;;
209
210 bison*|yacc*)
211 echo 1>&2 "\
212 WARNING: \`$1' $msg. You should only need it if
213 you modified a \`.y' file. You may need the \`Bison' package
214 in order for those modifications to take effect. You can get
215 \`Bison' from any GNU archive site."
216 rm -f y.tab.c y.tab.h
217 if test $# -ne 1; then
218 eval LASTARG=\${$#}
219 case $LASTARG in
220 *.y)
221 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
222 if test -f "$SRCFILE"; then
223 cp "$SRCFILE" y.tab.c
224 fi
225 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
226 if test -f "$SRCFILE"; then
227 cp "$SRCFILE" y.tab.h
228 fi
229 ;;
230 esac
231 fi
232 if test ! -f y.tab.h; then
233 echo >y.tab.h
234 fi
235 if test ! -f y.tab.c; then
236 echo 'main() { return 0; }' >y.tab.c
237 fi
238 ;;
239
240 lex*|flex*)
241 echo 1>&2 "\
242 WARNING: \`$1' is $msg. You should only need it if
243 you modified a \`.l' file. You may need the \`Flex' package
244 in order for those modifications to take effect. You can get
245 \`Flex' from any GNU archive site."
246 rm -f lex.yy.c
247 if test $# -ne 1; then
248 eval LASTARG=\${$#}
249 case $LASTARG in
250 *.l)
251 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
252 if test -f "$SRCFILE"; then
253 cp "$SRCFILE" lex.yy.c
254 fi
255 ;;
256 esac
257 fi
258 if test ! -f lex.yy.c; then
259 echo 'main() { return 0; }' >lex.yy.c
260 fi
261 ;;
262
263 help2man*)
264 echo 1>&2 "\
265 WARNING: \`$1' is $msg. You should only need it if
266 you modified a dependency of a manual page. You may need the
267 \`Help2man' package in order for those modifications to take
268 effect. You can get \`Help2man' from any GNU archive site."
269
270 file=`echo "$*" | sed -n "$sed_output"`
271 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
272 if test -f "$file"; then
273 touch $file
274 else
275 test -z "$file" || exec >$file
276 echo ".ab help2man is required to generate this page"
277 exit $?
278 fi
279 ;;
280
281 makeinfo*)
282 echo 1>&2 "\
283 WARNING: \`$1' is $msg. You should only need it if
284 you modified a \`.texi' or \`.texinfo' file, or any other file
285 indirectly affecting the aspect of the manual. The spurious
286 call might also be the consequence of using a buggy \`make' (AIX,
287 DU, IRIX). You might want to install the \`Texinfo' package or
288 the \`GNU make' package. Grab either from any GNU archive site."
289 # The file to touch is that specified with -o ...
290 file=`echo "$*" | sed -n "$sed_output"`
291 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '
296 /^@setfilename/{
297 s/.* \([^ ]*\) *$/\1/
298 p
299 q
300 }' $infile`
301 # ... or it is derived from the source name (dir/f.texi becomes f.info)
302 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
303 fi
304 # If the file does not exist, the user really needs makeinfo;
305 # let's fail without touching anything.
306 test -f $file || exit 1
307 touch $file
308 ;;
309
310 *)
311 echo 1>&2 "\
312 WARNING: \`$1' is needed, and is $msg.
313 You might have modified some files without having the
314 proper tools for further handling them. Check the \`README' file,
315 it often tells you about the needed prerequisites for installing
316 this package. You may also peek at any GNU archive site, in case
317 some other package would contain this missing \`$1' program."
318 exit 1
319 ;;
320 esac
321
322 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' 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
323207
324208 # Local variables:
325209 # eval: (add-hook 'write-file-hooks 'time-stamp)
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1615
1716
1817 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
2231 case $$MAKEFLAGS in \
2332 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3336 esac; \
34 test $$am__dry = yes; \
35 }
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3663 pkgdatadir = $(datadir)/@PACKAGE@
3764 pkgincludedir = $(includedir)/@PACKAGE@
3865 pkglibdir = $(libdir)/@PACKAGE@
5279 build_triplet = @build@
5380 host_triplet = @host@
5481 subdir = src
55 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
56 $(srcdir)/Makefile.in
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(include_HEADERS)
5784 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
5885 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
5986 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
81108 AM_V_lt = $(am__v_lt_@AM_V@)
82109 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
83110 am__v_lt_0 = --silent
111 am__v_lt_1 =
84112 libcommon_daemon_lib_la_DEPENDENCIES = compat/libcompat.la
85113 am_libcommon_daemon_lib_la_OBJECTS = log.lo marshal.lo ctl.lo \
86114 lldpd-structs.lo
87115 libcommon_daemon_lib_la_OBJECTS = \
88116 $(am_libcommon_daemon_lib_la_OBJECTS)
117 AM_V_P = $(am__v_P_@AM_V@)
118 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
119 am__v_P_0 = false
120 am__v_P_1 = :
121 AM_V_GEN = $(am__v_GEN_@AM_V@)
122 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
123 am__v_GEN_0 = @echo " GEN " $@;
124 am__v_GEN_1 =
125 AM_V_at = $(am__v_at_@AM_V@)
126 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
127 am__v_at_0 = @
128 am__v_at_1 =
89129 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
90130 depcomp = $(SHELL) $(top_srcdir)/depcomp
91131 am__depfiles_maybe = depfiles
98138 $(AM_CFLAGS) $(CFLAGS)
99139 AM_V_CC = $(am__v_CC_@AM_V@)
100140 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
101 am__v_CC_0 = @echo " CC " $@;
102 AM_V_at = $(am__v_at_@AM_V@)
103 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
104 am__v_at_0 = @
141 am__v_CC_0 = @echo " CC " $@;
142 am__v_CC_1 =
105143 CCLD = $(CC)
106144 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
107145 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
108146 $(AM_LDFLAGS) $(LDFLAGS) -o $@
109147 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
110148 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
111 am__v_CCLD_0 = @echo " CCLD " $@;
112 AM_V_GEN = $(am__v_GEN_@AM_V@)
113 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
114 am__v_GEN_0 = @echo " GEN " $@;
149 am__v_CCLD_0 = @echo " CCLD " $@;
150 am__v_CCLD_1 =
115151 SOURCES = $(libcommon_daemon_client_la_SOURCES) \
116152 $(libcommon_daemon_lib_la_SOURCES)
117153 DIST_SOURCES = $(libcommon_daemon_client_la_SOURCES) \
150186 }
151187 am__installdirs = "$(DESTDIR)$(includedir)"
152188 HEADERS = $(include_HEADERS)
189 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
190 # Read a list of newline-separated strings from the standard input,
191 # and print each of them once, without duplicates. Input order is
192 # *not* preserved.
193 am__uniquify_input = $(AWK) '\
194 BEGIN { nonempty = 0; } \
195 { items[$$0] = 1; nonempty = 1; } \
196 END { if (nonempty) { for (i in items) print i; }; } \
197 '
198 # Make sure the list of sources is unique. This is necessary because,
199 # e.g., the same source file might be shared among _SOURCES variables
200 # for different programs/libraries.
201 am__define_uniq_tagged_files = \
202 list='$(am__tagged_files)'; \
203 unique=`for i in $$list; do \
204 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
205 done | $(am__uniquify_input)`
153206 ETAGS = etags
154207 CTAGS = ctags
155208 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
364417
365418 clean-noinstLTLIBRARIES:
366419 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
367 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
368 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
369 test "$$dir" != "$$p" || dir=.; \
370 echo "rm -f \"$${dir}/so_locations\""; \
371 rm -f "$${dir}/so_locations"; \
372 done
420 @list='$(noinst_LTLIBRARIES)'; \
421 locs=`for p in $$list; do echo $$p; done | \
422 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
423 sort -u`; \
424 test -z "$$locs" || { \
425 echo rm -f $${locs}; \
426 rm -f $${locs}; \
427 }
428
373429 libcommon-daemon-client.la: $(libcommon_daemon_client_la_OBJECTS) $(libcommon_daemon_client_la_DEPENDENCIES) $(EXTRA_libcommon_daemon_client_la_DEPENDENCIES)
374430 $(AM_V_CCLD)$(LINK) $(libcommon_daemon_client_la_OBJECTS) $(libcommon_daemon_client_la_LIBADD) $(LIBS)
431
375432 libcommon-daemon-lib.la: $(libcommon_daemon_lib_la_OBJECTS) $(libcommon_daemon_lib_la_DEPENDENCIES) $(EXTRA_libcommon_daemon_lib_la_DEPENDENCIES)
376433 $(AM_V_CCLD)$(LINK) $(libcommon_daemon_lib_la_OBJECTS) $(libcommon_daemon_lib_la_LIBADD) $(LIBS)
377434
434491 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
435492 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
436493
437 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
438 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
439 unique=`for i in $$list; do \
440 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
441 done | \
442 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
443 END { if (nonempty) { for (i in files) print i; }; }'`; \
444 mkid -fID $$unique
445 tags: TAGS
446
447 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
448 $(TAGS_FILES) $(LISP)
494 ID: $(am__tagged_files)
495 $(am__define_uniq_tagged_files); mkid -fID $$unique
496 tags: tags-am
497 TAGS: tags
498
499 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
449500 set x; \
450501 here=`pwd`; \
451 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
452 unique=`for i in $$list; do \
453 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
454 done | \
455 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
456 END { if (nonempty) { for (i in files) print i; }; }'`; \
502 $(am__define_uniq_tagged_files); \
457503 shift; \
458504 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
459505 test -n "$$unique" || unique=$$empty_fix; \
465511 $$unique; \
466512 fi; \
467513 fi
468 ctags: CTAGS
469 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
470 $(TAGS_FILES) $(LISP)
471 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
472 unique=`for i in $$list; do \
473 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
474 done | \
475 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
476 END { if (nonempty) { for (i in files) print i; }; }'`; \
514 ctags: ctags-am
515
516 CTAGS: ctags
517 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
518 $(am__define_uniq_tagged_files); \
477519 test -z "$(CTAGS_ARGS)$$unique" \
478520 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
479521 $$unique
482524 here=`$(am__cd) $(top_builddir) && pwd` \
483525 && $(am__cd) $(top_srcdir) \
484526 && gtags -i $(GTAGS_ARGS) "$$here"
527 cscopelist: cscopelist-am
528
529 cscopelist-am: $(am__tagged_files)
530 list='$(am__tagged_files)'; \
531 case "$(srcdir)" in \
532 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
533 *) sdir=$(subdir)/$(srcdir) ;; \
534 esac; \
535 for i in $$list; do \
536 if test -f "$$i"; then \
537 echo "$(subdir)/$$i"; \
538 else \
539 echo "$$sdir/$$i"; \
540 fi; \
541 done >> $(top_builddir)/cscope.files
485542
486543 distclean-tags:
487544 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
626683
627684 .MAKE: install-am install-strip
628685
629 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
630 clean-libtool clean-noinstLTLIBRARIES ctags distclean \
631 distclean-compile distclean-generic distclean-libtool \
632 distclean-tags distdir dvi dvi-am html html-am info info-am \
633 install install-am install-data install-data-am install-dvi \
634 install-dvi-am install-exec install-exec-am install-html \
635 install-html-am install-includeHEADERS install-info \
636 install-info-am install-man install-pdf install-pdf-am \
637 install-ps install-ps-am install-strip installcheck \
638 installcheck-am installdirs maintainer-clean \
639 maintainer-clean-generic mostlyclean mostlyclean-compile \
640 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
641 tags uninstall uninstall-am uninstall-includeHEADERS
686 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
687 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
688 ctags-am distclean distclean-compile distclean-generic \
689 distclean-libtool distclean-tags distdir dvi dvi-am html \
690 html-am info info-am install install-am install-data \
691 install-data-am install-dvi install-dvi-am install-exec \
692 install-exec-am install-html install-html-am \
693 install-includeHEADERS install-info install-info-am \
694 install-man install-pdf install-pdf-am install-ps \
695 install-ps-am install-strip installcheck installcheck-am \
696 installdirs maintainer-clean maintainer-clean-generic \
697 mostlyclean mostlyclean-compile mostlyclean-generic \
698 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
699 uninstall-am uninstall-includeHEADERS
642700
643701
644702 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1010
1111 lldpcli_SOURCES = client.h lldpcli.c display.c \
1212 conf.c conf-med.c conf-dot3.c conf-power.c \
13 conf-lldp.c conf-system.c \
1314 commands.c show.c \
1415 misc.c tokenizer.c \
1516 writer.h text_writer.c kv_writer.c
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
2130 case $$MAKEFLAGS in \
2231 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3235 esac; \
33 test $$am__dry = yes; \
34 }
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3562 pkgdatadir = $(datadir)/@PACKAGE@
3663 pkgincludedir = $(includedir)/@PACKAGE@
3764 pkglibdir = $(libdir)/@PACKAGE@
5885 @USE_JSON_TRUE@am__append_5 = @JANSSON_CFLAGS@
5986 @USE_JSON_TRUE@am__append_6 = @JANSSON_LIBS@
6087 subdir = src/client
61 DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
62 $(srcdir)/Makefile.in
88 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
89 $(top_srcdir)/depcomp $(dist_man_MANS)
6390 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6491 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
6592 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
82109 am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"
83110 PROGRAMS = $(sbin_PROGRAMS)
84111 am__lldpcli_SOURCES_DIST = client.h lldpcli.c display.c conf.c \
85 conf-med.c conf-dot3.c conf-power.c commands.c show.c misc.c \
86 tokenizer.c writer.h text_writer.c kv_writer.c xml_writer.c \
87 json_writer.c
112 conf-med.c conf-dot3.c conf-power.c conf-lldp.c conf-system.c \
113 commands.c show.c misc.c tokenizer.c writer.h text_writer.c \
114 kv_writer.c xml_writer.c json_writer.c
88115 @USE_XML_TRUE@am__objects_1 = lldpcli-xml_writer.$(OBJEXT)
89116 @USE_JSON_TRUE@am__objects_2 = lldpcli-json_writer.$(OBJEXT)
90117 am_lldpcli_OBJECTS = lldpcli-lldpcli.$(OBJEXT) \
91118 lldpcli-display.$(OBJEXT) lldpcli-conf.$(OBJEXT) \
92119 lldpcli-conf-med.$(OBJEXT) lldpcli-conf-dot3.$(OBJEXT) \
93 lldpcli-conf-power.$(OBJEXT) lldpcli-commands.$(OBJEXT) \
120 lldpcli-conf-power.$(OBJEXT) lldpcli-conf-lldp.$(OBJEXT) \
121 lldpcli-conf-system.$(OBJEXT) lldpcli-commands.$(OBJEXT) \
94122 lldpcli-show.$(OBJEXT) lldpcli-misc.$(OBJEXT) \
95123 lldpcli-tokenizer.$(OBJEXT) lldpcli-text_writer.$(OBJEXT) \
96124 lldpcli-kv_writer.$(OBJEXT) $(am__objects_1) $(am__objects_2)
102130 AM_V_lt = $(am__v_lt_@AM_V@)
103131 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
104132 am__v_lt_0 = --silent
133 am__v_lt_1 =
105134 lldpcli_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
106135 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(lldpcli_CFLAGS) \
107136 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
137 AM_V_P = $(am__v_P_@AM_V@)
138 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
139 am__v_P_0 = false
140 am__v_P_1 = :
141 AM_V_GEN = $(am__v_GEN_@AM_V@)
142 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
143 am__v_GEN_0 = @echo " GEN " $@;
144 am__v_GEN_1 =
145 AM_V_at = $(am__v_at_@AM_V@)
146 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
147 am__v_at_0 = @
148 am__v_at_1 =
108149 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
109150 depcomp = $(SHELL) $(top_srcdir)/depcomp
110151 am__depfiles_maybe = depfiles
117158 $(AM_CFLAGS) $(CFLAGS)
118159 AM_V_CC = $(am__v_CC_@AM_V@)
119160 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
120 am__v_CC_0 = @echo " CC " $@;
121 AM_V_at = $(am__v_at_@AM_V@)
122 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
123 am__v_at_0 = @
161 am__v_CC_0 = @echo " CC " $@;
162 am__v_CC_1 =
124163 CCLD = $(CC)
125164 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
126165 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
127166 $(AM_LDFLAGS) $(LDFLAGS) -o $@
128167 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
129168 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
130 am__v_CCLD_0 = @echo " CCLD " $@;
131 AM_V_GEN = $(am__v_GEN_@AM_V@)
132 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
133 am__v_GEN_0 = @echo " GEN " $@;
169 am__v_CCLD_0 = @echo " CCLD " $@;
170 am__v_CCLD_1 =
134171 SOURCES = $(lldpcli_SOURCES)
135172 DIST_SOURCES = $(am__lldpcli_SOURCES_DIST)
136173 am__can_run_installinfo = \
168205 man8dir = $(mandir)/man8
169206 NROFF = nroff
170207 MANS = $(dist_man_MANS)
208 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
209 # Read a list of newline-separated strings from the standard input,
210 # and print each of them once, without duplicates. Input order is
211 # *not* preserved.
212 am__uniquify_input = $(AWK) '\
213 BEGIN { nonempty = 0; } \
214 { items[$$0] = 1; nonempty = 1; } \
215 END { if (nonempty) { for (i in items) print i; }; } \
216 '
217 # Make sure the list of sources is unique. This is necessary because,
218 # e.g., the same source file might be shared among _SOURCES variables
219 # for different programs/libraries.
220 am__define_uniq_tagged_files = \
221 list='$(am__tagged_files)'; \
222 unique=`for i in $$list; do \
223 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
224 done | $(am__uniquify_input)`
171225 ETAGS = etags
172226 CTAGS = ctags
173227 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
336390 AM_CFLAGS = -I $(top_srcdir)/include
337391 dist_man_MANS = lldpcli.8 lldpctl.8
338392 lldpcli_SOURCES = client.h lldpcli.c display.c conf.c conf-med.c \
339 conf-dot3.c conf-power.c commands.c show.c misc.c tokenizer.c \
340 writer.h text_writer.c kv_writer.c $(am__append_1) \
341 $(am__append_4)
393 conf-dot3.c conf-power.c conf-lldp.c conf-system.c commands.c \
394 show.c misc.c tokenizer.c writer.h text_writer.c kv_writer.c \
395 $(am__append_1) $(am__append_4)
342396 lldpcli_LDADD = $(top_builddir)/src/libcommon-daemon-client.la \
343397 $(top_builddir)/src/lib/liblldpctl.la @READLINE_LIBS@ \
344398 $(am__append_3) $(am__append_6)
386440 fi; \
387441 for p in $$list; do echo "$$p $$p"; done | \
388442 sed 's/$(EXEEXT)$$//' | \
389 while read p p1; do if test -f $$p || test -f $$p1; \
390 then echo "$$p"; echo "$$p"; else :; fi; \
443 while read p p1; do if test -f $$p \
444 || test -f $$p1 \
445 ; then echo "$$p"; echo "$$p"; else :; fi; \
391446 done | \
392 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
447 sed -e 'p;s,.*/,,;n;h' \
448 -e 's|.*|.|' \
393449 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
394450 sed 'N;N;N;s,\n, ,g' | \
395451 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
410466 @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
411467 files=`for p in $$list; do echo "$$p"; done | \
412468 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
413 -e 's/$$/$(EXEEXT)/' `; \
469 -e 's/$$/$(EXEEXT)/' \
470 `; \
414471 test -n "$$list" || exit 0; \
415472 echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
416473 cd "$(DESTDIR)$(sbindir)" && rm -f $$files
423480 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
424481 echo " rm -f" $$list; \
425482 rm -f $$list
483
426484 lldpcli$(EXEEXT): $(lldpcli_OBJECTS) $(lldpcli_DEPENDENCIES) $(EXTRA_lldpcli_DEPENDENCIES)
427485 @rm -f lldpcli$(EXEEXT)
428486 $(AM_V_CCLD)$(lldpcli_LINK) $(lldpcli_OBJECTS) $(lldpcli_LDADD) $(LIBS)
435493
436494 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-commands.Po@am__quote@
437495 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-dot3.Po@am__quote@
496 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-lldp.Po@am__quote@
438497 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-med.Po@am__quote@
439498 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-power.Po@am__quote@
499 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-system.Po@am__quote@
440500 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf.Po@am__quote@
441501 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-display.Po@am__quote@
442502 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-json_writer.Po@am__quote@
552612 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-power.c' object='lldpcli-conf-power.obj' libtool=no @AMDEPBACKSLASH@
553613 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
554614 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-power.obj `if test -f 'conf-power.c'; then $(CYGPATH_W) 'conf-power.c'; else $(CYGPATH_W) '$(srcdir)/conf-power.c'; fi`
615
616 lldpcli-conf-lldp.o: conf-lldp.c
617 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-lldp.o -MD -MP -MF $(DEPDIR)/lldpcli-conf-lldp.Tpo -c -o lldpcli-conf-lldp.o `test -f 'conf-lldp.c' || echo '$(srcdir)/'`conf-lldp.c
618 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-lldp.Tpo $(DEPDIR)/lldpcli-conf-lldp.Po
619 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-lldp.c' object='lldpcli-conf-lldp.o' libtool=no @AMDEPBACKSLASH@
620 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
621 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-lldp.o `test -f 'conf-lldp.c' || echo '$(srcdir)/'`conf-lldp.c
622
623 lldpcli-conf-lldp.obj: conf-lldp.c
624 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-lldp.obj -MD -MP -MF $(DEPDIR)/lldpcli-conf-lldp.Tpo -c -o lldpcli-conf-lldp.obj `if test -f 'conf-lldp.c'; then $(CYGPATH_W) 'conf-lldp.c'; else $(CYGPATH_W) '$(srcdir)/conf-lldp.c'; fi`
625 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-lldp.Tpo $(DEPDIR)/lldpcli-conf-lldp.Po
626 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-lldp.c' object='lldpcli-conf-lldp.obj' libtool=no @AMDEPBACKSLASH@
627 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
628 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-lldp.obj `if test -f 'conf-lldp.c'; then $(CYGPATH_W) 'conf-lldp.c'; else $(CYGPATH_W) '$(srcdir)/conf-lldp.c'; fi`
629
630 lldpcli-conf-system.o: conf-system.c
631 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-system.o -MD -MP -MF $(DEPDIR)/lldpcli-conf-system.Tpo -c -o lldpcli-conf-system.o `test -f 'conf-system.c' || echo '$(srcdir)/'`conf-system.c
632 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-system.Tpo $(DEPDIR)/lldpcli-conf-system.Po
633 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-system.c' object='lldpcli-conf-system.o' libtool=no @AMDEPBACKSLASH@
634 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
635 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-system.o `test -f 'conf-system.c' || echo '$(srcdir)/'`conf-system.c
636
637 lldpcli-conf-system.obj: conf-system.c
638 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-system.obj -MD -MP -MF $(DEPDIR)/lldpcli-conf-system.Tpo -c -o lldpcli-conf-system.obj `if test -f 'conf-system.c'; then $(CYGPATH_W) 'conf-system.c'; else $(CYGPATH_W) '$(srcdir)/conf-system.c'; fi`
639 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-system.Tpo $(DEPDIR)/lldpcli-conf-system.Po
640 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-system.c' object='lldpcli-conf-system.obj' libtool=no @AMDEPBACKSLASH@
641 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
642 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-system.obj `if test -f 'conf-system.c'; then $(CYGPATH_W) 'conf-system.c'; else $(CYGPATH_W) '$(srcdir)/conf-system.c'; fi`
555643
556644 lldpcli-commands.o: commands.c
557645 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-commands.o -MD -MP -MF $(DEPDIR)/lldpcli-commands.Tpo -c -o lldpcli-commands.o `test -f 'commands.c' || echo '$(srcdir)/'`commands.c
714802 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
715803 dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir)
716804
717 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
718 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
719 unique=`for i in $$list; do \
720 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
721 done | \
722 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
723 END { if (nonempty) { for (i in files) print i; }; }'`; \
724 mkid -fID $$unique
725 tags: TAGS
726
727 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
728 $(TAGS_FILES) $(LISP)
805 ID: $(am__tagged_files)
806 $(am__define_uniq_tagged_files); mkid -fID $$unique
807 tags: tags-am
808 TAGS: tags
809
810 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
729811 set x; \
730812 here=`pwd`; \
731 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
732 unique=`for i in $$list; do \
733 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
734 done | \
735 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
736 END { if (nonempty) { for (i in files) print i; }; }'`; \
813 $(am__define_uniq_tagged_files); \
737814 shift; \
738815 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
739816 test -n "$$unique" || unique=$$empty_fix; \
745822 $$unique; \
746823 fi; \
747824 fi
748 ctags: CTAGS
749 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
750 $(TAGS_FILES) $(LISP)
751 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
752 unique=`for i in $$list; do \
753 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
754 done | \
755 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
756 END { if (nonempty) { for (i in files) print i; }; }'`; \
825 ctags: ctags-am
826
827 CTAGS: ctags
828 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
829 $(am__define_uniq_tagged_files); \
757830 test -z "$(CTAGS_ARGS)$$unique" \
758831 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
759832 $$unique
762835 here=`$(am__cd) $(top_builddir) && pwd` \
763836 && $(am__cd) $(top_srcdir) \
764837 && gtags -i $(GTAGS_ARGS) "$$here"
838 cscopelist: cscopelist-am
839
840 cscopelist-am: $(am__tagged_files)
841 list='$(am__tagged_files)'; \
842 case "$(srcdir)" in \
843 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
844 *) sdir=$(subdir)/$(srcdir) ;; \
845 esac; \
846 for i in $$list; do \
847 if test -f "$$i"; then \
848 echo "$(subdir)/$$i"; \
849 else \
850 echo "$$sdir/$$i"; \
851 fi; \
852 done >> $(top_builddir)/cscope.files
765853
766854 distclean-tags:
767855 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
768856
769857 distdir: $(DISTFILES)
770 @list='$(MANS)'; if test -n "$$list"; then \
771 list=`for p in $$list; do \
772 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
773 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
774 if test -n "$$list" && \
775 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
776 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
777 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
778 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
779 echo " typically \`make maintainer-clean' will remove them" >&2; \
780 exit 1; \
781 else :; fi; \
782 else :; fi
783858 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
784859 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
785860 list='$(DISTFILES)'; \
921996
922997 .MAKE: install-am install-strip
923998
924 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
925 clean-libtool clean-sbinPROGRAMS ctags distclean \
926 distclean-compile distclean-generic distclean-libtool \
927 distclean-tags distdir dvi dvi-am html html-am info info-am \
928 install install-am install-data install-data-am install-dvi \
929 install-dvi-am install-exec install-exec-am install-exec-local \
930 install-html install-html-am install-info install-info-am \
931 install-man install-man8 install-pdf install-pdf-am install-ps \
999 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
1000 clean-libtool clean-sbinPROGRAMS cscopelist-am ctags ctags-am \
1001 distclean distclean-compile distclean-generic \
1002 distclean-libtool distclean-tags distdir dvi dvi-am html \
1003 html-am info info-am install install-am install-data \
1004 install-data-am install-dvi install-dvi-am install-exec \
1005 install-exec-am install-exec-local install-html \
1006 install-html-am install-info install-info-am install-man \
1007 install-man8 install-pdf install-pdf-am install-ps \
9321008 install-ps-am install-sbinPROGRAMS install-strip installcheck \
9331009 installcheck-am installdirs maintainer-clean \
9341010 maintainer-clean-generic mostlyclean mostlyclean-compile \
9351011 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
936 tags uninstall uninstall-am uninstall-local uninstall-man \
937 uninstall-man8 uninstall-sbinPROGRAMS
1012 tags tags-am uninstall uninstall-am uninstall-local \
1013 uninstall-man uninstall-man8 uninstall-sbinPROGRAMS
9381014
9391015
9401016 install-exec-local: lldpcli
123123
124124 /* conf*.c */
125125 void register_commands_configure(struct cmd_node *);
126 void register_commands_configure_system(struct cmd_node *);
127 void register_commands_configure_lldp(struct cmd_node *);
126128 void register_commands_configure_med(struct cmd_node *, struct cmd_node *);
127129 void register_commands_configure_dot3(struct cmd_node *);
128130 void register_commands_medpow(struct cmd_node *);
0 /* -*- mode: c; c-file-style: "openbsd" -*- */
1 /*
2 * Copyright (c) 2013 Vincent Bernat <bernat@luffy.cx>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #include <unistd.h>
18 #include <string.h>
19
20 #include "client.h"
21 #include "../log.h"
22
23 static int
24 cmd_txdelay(struct lldpctl_conn_t *conn, struct writer *w,
25 struct cmd_env *env, void *arg)
26 {
27 log_debug("lldpctl", "set transmit delay");
28
29 lldpctl_atom_t *config = lldpctl_get_configuration(conn);
30 if (config == NULL) {
31 log_warnx("lldpctl", "unable to get configuration from lldpd. %s",
32 lldpctl_last_strerror(conn));
33 return 0;
34 }
35 if (lldpctl_atom_set_str(config,
36 lldpctl_k_config_tx_interval, cmdenv_get(env, "tx-interval")) == NULL) {
37 log_warnx("lldpctl", "unable to set transmit delay. %s",
38 lldpctl_last_strerror(conn));
39 lldpctl_atom_dec_ref(config);
40 return 0;
41 }
42 log_info("lldpctl", "transmit delay set to new value");
43 lldpctl_atom_dec_ref(config);
44 return 1;
45 }
46
47 static int
48 cmd_txhold(struct lldpctl_conn_t *conn, struct writer *w,
49 struct cmd_env *env, void *arg)
50 {
51 log_debug("lldpctl", "set transmit hold");
52
53 lldpctl_atom_t *config = lldpctl_get_configuration(conn);
54 if (config == NULL) {
55 log_warnx("lldpctl", "unable to get configuration from lldpd. %s",
56 lldpctl_last_strerror(conn));
57 return 0;
58 }
59 if (lldpctl_atom_set_str(config,
60 lldpctl_k_config_tx_hold, cmdenv_get(env, "tx-hold")) == NULL) {
61 log_warnx("lldpctl", "unable to set transmit hold. %s",
62 lldpctl_last_strerror(conn));
63 lldpctl_atom_dec_ref(config);
64 return 0;
65 }
66 log_info("lldpctl", "transmit hold set to new value %s", cmdenv_get(env, "tx-hold"));
67 lldpctl_atom_dec_ref(config);
68 return 1;
69 }
70
71 /**
72 * Register `configure lldp` commands.
73 *
74 * Those are the commands that are related to the LLDP protocol but not
75 * Dot1/Dot3/MED. Commands not related to LLDP should go in system instead.
76 */
77 void
78 register_commands_configure_lldp(struct cmd_node *configure)
79 {
80 struct cmd_node *configure_lldp = commands_new(
81 configure,
82 "lldp", "LLDP configuration",
83 NULL, NULL, NULL);
84
85 commands_new(
86 commands_new(
87 commands_new(configure_lldp,
88 "tx-interval", "Set LLDP transmit delay",
89 cmd_check_no_env, NULL, "ports"),
90 NULL, "LLDP transmit delay in seconds",
91 NULL, cmd_store_env_value, "tx-interval"),
92 NEWLINE, "Set LLDP transmit delay",
93 NULL, cmd_txdelay, NULL);
94
95 commands_new(
96 commands_new(
97 commands_new(configure_lldp,
98 "tx-hold", "Set LLDP transmit hold",
99 cmd_check_no_env, NULL, "ports"),
100 NULL, "LLDP transmit hold in seconds",
101 NULL, cmd_store_env_value, "tx-hold"),
102 NEWLINE, "Set LLDP transmit hold",
103 NULL, cmd_txhold, NULL);
104 }
0 /* -*- mode: c; c-file-style: "openbsd" -*- */
1 /*
2 * Copyright (c) 2013 Vincent Bernat <bernat@luffy.cx>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #include <unistd.h>
18 #include <string.h>
19
20 #include "client.h"
21 #include "../log.h"
22
23 static int
24 cmd_iface_pattern(struct lldpctl_conn_t *conn, struct writer *w,
25 struct cmd_env *env, void *arg)
26 {
27 log_debug("lldpctl", "set iface pattern");
28
29 lldpctl_atom_t *config = lldpctl_get_configuration(conn);
30 if (config == NULL) {
31 log_warnx("lldpctl", "unable to get configuration from lldpd. %s",
32 lldpctl_last_strerror(conn));
33 return 0;
34 }
35 if (lldpctl_atom_set_str(config,
36 lldpctl_k_config_iface_pattern, cmdenv_get(env, "iface-pattern")) == NULL) {
37 log_warnx("lldpctl", "unable to set iface-pattern. %s",
38 lldpctl_last_strerror(conn));
39 lldpctl_atom_dec_ref(config);
40 return 0;
41 }
42 log_info("lldpctl", "iface-pattern set to new value %s", cmdenv_get(env, "iface-pattern"));
43 lldpctl_atom_dec_ref(config);
44 return 1;
45 }
46
47 static int
48 cmd_system_description(struct lldpctl_conn_t *conn, struct writer *w,
49 struct cmd_env *env, void *arg)
50 {
51 int platform = 0;
52 const char *value = cmdenv_get(env, "description");
53 if (!value) {
54 platform = 1;
55 value = cmdenv_get(env, "platform");
56 }
57 log_debug("lldpctl", "set %s description", platform?"platform":"system");
58 lldpctl_atom_t *config = lldpctl_get_configuration(conn);
59 if (config == NULL) {
60 log_warnx("lldpctl", "unable to get configuration from lldpd. %s",
61 lldpctl_last_strerror(conn));
62 return 0;
63 }
64 if (lldpctl_atom_set_str(config,
65 platform?lldpctl_k_config_platform:lldpctl_k_config_description,
66 value) == NULL) {
67 log_warnx("lldpctl", "unable to set description. %s",
68 lldpctl_last_strerror(conn));
69 lldpctl_atom_dec_ref(config);
70 return 0;
71 }
72 log_info("lldpctl", "description set to new value %s",
73 value);
74 lldpctl_atom_dec_ref(config);
75 return 1;
76 }
77
78 /**
79 * Register `configure system` commands.
80 *
81 * Those are the commands to configure protocol-independant stuff.
82 */
83 void
84 register_commands_configure_system(struct cmd_node *configure)
85 {
86 struct cmd_node *configure_system = commands_new(
87 configure,
88 "system", "System configuration",
89 cmd_check_no_env, NULL, "ports");
90 struct cmd_node *configure_interface = commands_new(
91 configure_system,
92 "interface", "Configure interface related items",
93 NULL, NULL, NULL);
94
95 commands_new(
96 commands_new(
97 commands_new(configure_system,
98 "description", "Override chassis description",
99 NULL, NULL, NULL),
100 NULL, "Chassis description",
101 NULL, cmd_store_env_value, "description"),
102 NEWLINE, "Override chassis description",
103 NULL, cmd_system_description, NULL);
104
105 commands_new(
106 commands_new(
107 commands_new(configure_system,
108 "platform", "Override platform description",
109 NULL, NULL, NULL),
110 NULL, "Platform description (CDP)",
111 NULL, cmd_store_env_value, "platform"),
112 NEWLINE, "Override platform description",
113 NULL, cmd_system_description, NULL);
114
115 commands_new(
116 commands_new(
117 commands_new(configure_interface,
118 "pattern", "Set active interface pattern",
119 NULL, NULL, NULL),
120 NULL, "Interface pattern (comma separated list of wildcards)",
121 NULL, cmd_store_env_value, "iface-pattern"),
122 NEWLINE, "Set active interface pattern",
123 NULL, cmd_iface_pattern, NULL);
124 }
2020 #include "client.h"
2121 #include "../log.h"
2222
23 static int
24 cmd_txdelay(struct lldpctl_conn_t *conn, struct writer *w,
25 struct cmd_env *env, void *arg)
26 {
27 log_debug("lldpctl", "set transmit delay");
28
29 lldpctl_atom_t *config = lldpctl_get_configuration(conn);
30 if (config == NULL) {
31 log_warnx("lldpctl", "unable to get configuration from lldpd. %s",
32 lldpctl_last_strerror(conn));
33 return 0;
34 }
35 if (lldpctl_atom_set_str(config,
36 lldpctl_k_config_tx_interval, cmdenv_get(env, "tx-interval")) == NULL) {
37 log_warnx("lldpctl", "unable to set transmit delay. %s",
38 lldpctl_last_strerror(conn));
39 lldpctl_atom_dec_ref(config);
40 return 0;
41 }
42 log_info("lldpctl", "transmit delay set to new value");
43 lldpctl_atom_dec_ref(config);
44 return 1;
45 }
46
47 /**
48 * Register `configure lldp` commands.
49 */
50 void
51 register_commands_configure_lldp(struct cmd_node *configure)
52 {
53 struct cmd_node *configure_lldp = commands_new(
54 configure,
55 "lldp", "LLDP configuration",
56 NULL, NULL, NULL);
57
58 commands_new(
59 commands_new(
60 commands_new(configure_lldp,
61 "tx-interval", "Set LLDP transmit delay",
62 cmd_check_no_env, NULL, "ports"),
63 NULL, "LLDP transmit delay in seconds",
64 NULL, cmd_store_env_value, "tx-interval"),
65 NEWLINE, "Set LLDP transmit delay",
66 NULL, cmd_txdelay, NULL);
67 }
68
6923 /**
7024 * Register `configure` and `no configure` commands.
7125 */
8539 cmd_restrict_ports(configure);
8640 cmd_restrict_ports(unconfigure);
8741
88 register_commands_configure_lldp(configure);
89 register_commands_configure_med(configure, unconfigure);
90 register_commands_configure_dot3(configure);
42 register_commands_configure_system(configure);
43 register_commands_configure_lldp(configure);
44 register_commands_configure_med(configure, unconfigure);
45 register_commands_configure_dot3(configure);
9146 }
708708
709709 tag_datatag(w, "tx-delay", "Transmit delay",
710710 lldpctl_atom_get_str(configuration, lldpctl_k_config_tx_interval));
711 tag_datatag(w, "tx-hold", "Transmit hold",
712 lldpctl_atom_get_str(configuration, lldpctl_k_config_tx_hold));
711713 tag_datatag(w, "rx-only", "Receive mode",
712714 lldpctl_atom_get_int(configuration, lldpctl_k_config_receiveonly)?
713715 "yes":"no");
166166 .Ed
167167
168168 .Cd configure
169 .Op ports Ar ethX Op ,...
169 .Cd system description Ar description
170 .Bd -ragged -offset XXXXXX
171 Override chassis description with the provided value instead of using
172 kernel name, node name, kernel version, build date and architecture.
173 .Ed
174
175 .Cd configure
176 .Cd system platform Ar description
177 .Bd -ragged -offset XXXXXX
178 Override platform description with the provided value instead of using
179 kernel name. This value is currently only used for CDP.
180 .Ed
181
182 .Cd configure
183 .Cd system interface pattern Ar pattern
184 .Bd -ragged -offset XXXXXX
185 Set the pattern of valid interfaces to use. When not set,
186 .Nm lldpd
187 will listen on all available interfaces. This option can use
188 wildcards. Several interfaces can be specified separated by commas.
189 It is also possible to blacklist an interface by suffixing it with an
190 exclamation mark. When an interface is both specified with and without
191 an exclamation mark, it is blacklisted. For example, with
192 .Em eth*,!eth1,!eth2
193 .Nm lldpd
194 will only listen to interfaces starting by
195 .Em eth
196 with the exception of
197 .Em eth1
198 and
199 .Em eth2 .
200 .Ed
201
202 .Cd configure
170203 .Cd lldp tx-interval Ar interval
171204 .Bd -ragged -offset XXXXXX
172205 Change transmit delay to the specified value in seconds. The transmit
173206 delay is the delay between two transmissions of LLDP PDU. The default
174207 value is 30 seconds.
208 .Ed
209
210 .Cd configure
211 .Cd lldp tx-hold Ar hold
212 .Bd -ragged -offset XXXXXX
213 Change transmit hold value to the specified value. This value is used
214 to compute the TTL of transmitted packets which is the product of this
215 value and of the transmit delay. The default value is 4 and therefore
216 the default TTL is 120 seconds.
175217 .Ed
176218
177219 .Cd configure med fast-start
471471 size_t len;
472472 char *line;
473473 while ((line = fgetln(file, &len))) {
474 line = strndup(line, len);
474475 if (line[len - 1] == '\n') {
475476 line[len - 1] = '\0';
476477 parse_and_exec(conn, fmt, line);
8888 return 1;
8989 }
9090
91 struct watcharg {
92 struct cmd_env *env;
93 struct writer *w;
94 };
95
9196 /**
9297 * Callback for the next function to display a new neighbor.
9398 */
98103 lldpctl_atom_t *neighbor,
99104 void *data)
100105 {
101 struct cmd_env *env = data;
102 struct writer *w = (struct writer *)cmdenv_get(env, "writer");
106 struct watcharg *wa = data;
107 struct cmd_env *env = wa->env;
108 struct writer *w = wa->w;
103109 const char *interfaces = cmdenv_get(env, "ports");
104110 if (interfaces && !contains(interfaces, lldpctl_atom_get_str(interface,
105111 lldpctl_k_interface_name)))
132138 struct cmd_env *env, void *arg)
133139 {
134140 int watch = 1;
141 struct watcharg wa = {
142 .env = env,
143 .w = w
144 };
135145 log_debug("lldpctl", "watch for neighbor changes");
136 if (lldpctl_watch_callback(conn, watchcb, env) < 0) {
146 if (lldpctl_watch_callback(conn, watchcb, &wa) < 0) {
137147 log_warnx("lldpctl", "unable to watch for neighbors. %s",
138148 lldpctl_last_strerror(conn));
139149 return 0;
140150 }
141 cmdenv_put(env, "writer", (const char*)w); /* Hackish, but we really
142 * don't care. */
143151 while (watch) {
144152 if (lldpctl_watch(conn) < 0) {
145153 log_warnx("lldpctl", "unable to watch for neighbors. %s",
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
2130 case $$MAKEFLAGS in \
2231 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3235 esac; \
33 test $$am__dry = yes; \
34 }
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3562 pkgdatadir = $(datadir)/@PACKAGE@
3663 pkgincludedir = $(includedir)/@PACKAGE@
3764 pkglibdir = $(libdir)/@PACKAGE@
5178 build_triplet = @build@
5279 host_triplet = @host@
5380 subdir = src/compat
54 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in fgetln.c \
55 malloc.c realloc.c strlcpy.c strnlen.c
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am realloc.c \
82 setproctitle.c strnlen.c malloc.c strlcpy.c fgetln.c \
83 $(top_srcdir)/depcomp
5684 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
5785 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
5886 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
79107 AM_V_lt = $(am__v_lt_@AM_V@)
80108 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
81109 am__v_lt_0 = --silent
110 am__v_lt_1 =
111 AM_V_P = $(am__v_P_@AM_V@)
112 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
113 am__v_P_0 = false
114 am__v_P_1 = :
115 AM_V_GEN = $(am__v_GEN_@AM_V@)
116 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
117 am__v_GEN_0 = @echo " GEN " $@;
118 am__v_GEN_1 =
119 AM_V_at = $(am__v_at_@AM_V@)
120 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
121 am__v_at_0 = @
122 am__v_at_1 =
82123 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
83124 depcomp = $(SHELL) $(top_srcdir)/depcomp
84125 am__depfiles_maybe = depfiles
91132 $(AM_CFLAGS) $(CFLAGS)
92133 AM_V_CC = $(am__v_CC_@AM_V@)
93134 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
94 am__v_CC_0 = @echo " CC " $@;
95 AM_V_at = $(am__v_at_@AM_V@)
96 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
97 am__v_at_0 = @
135 am__v_CC_0 = @echo " CC " $@;
136 am__v_CC_1 =
98137 CCLD = $(CC)
99138 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
100139 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
101140 $(AM_LDFLAGS) $(LDFLAGS) -o $@
102141 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
103142 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
104 am__v_CCLD_0 = @echo " CCLD " $@;
105 AM_V_GEN = $(am__v_GEN_@AM_V@)
106 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
107 am__v_GEN_0 = @echo " GEN " $@;
143 am__v_CCLD_0 = @echo " CCLD " $@;
144 am__v_CCLD_1 =
108145 SOURCES = $(libcompat_la_SOURCES)
109146 DIST_SOURCES = $(libcompat_la_SOURCES)
110147 am__can_run_installinfo = \
112149 n|no|NO) false;; \
113150 *) (install-info --version) >/dev/null 2>&1;; \
114151 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)`
115169 ETAGS = etags
116170 CTAGS = ctags
117171 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
317371
318372 clean-noinstLTLIBRARIES:
319373 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
320 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
321 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
322 test "$$dir" != "$$p" || dir=.; \
323 echo "rm -f \"$${dir}/so_locations\""; \
324 rm -f "$${dir}/so_locations"; \
325 done
374 @list='$(noinst_LTLIBRARIES)'; \
375 locs=`for p in $$list; do echo $$p; done | \
376 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
377 sort -u`; \
378 test -z "$$locs" || { \
379 echo rm -f $${locs}; \
380 rm -f $${locs}; \
381 }
382
326383 libcompat.la: $(libcompat_la_OBJECTS) $(libcompat_la_DEPENDENCIES) $(EXTRA_libcompat_la_DEPENDENCIES)
327384 $(AM_V_CCLD)$(LINK) $(libcompat_la_OBJECTS) $(libcompat_la_LIBADD) $(LIBS)
328385
335392 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fgetln.Plo@am__quote@
336393 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/malloc.Plo@am__quote@
337394 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/realloc.Plo@am__quote@
395 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/setproctitle.Plo@am__quote@
338396 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strlcpy.Plo@am__quote@
339397 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strnlen.Plo@am__quote@
340398 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty.Plo@am__quote@
366424 clean-libtool:
367425 -rm -rf .libs _libs
368426
369 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
370 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
371 unique=`for i in $$list; do \
372 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
373 done | \
374 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
375 END { if (nonempty) { for (i in files) print i; }; }'`; \
376 mkid -fID $$unique
377 tags: TAGS
378
379 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
380 $(TAGS_FILES) $(LISP)
427 ID: $(am__tagged_files)
428 $(am__define_uniq_tagged_files); mkid -fID $$unique
429 tags: tags-am
430 TAGS: tags
431
432 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
381433 set x; \
382434 here=`pwd`; \
383 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
384 unique=`for i in $$list; do \
385 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
386 done | \
387 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
388 END { if (nonempty) { for (i in files) print i; }; }'`; \
435 $(am__define_uniq_tagged_files); \
389436 shift; \
390437 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
391438 test -n "$$unique" || unique=$$empty_fix; \
397444 $$unique; \
398445 fi; \
399446 fi
400 ctags: CTAGS
401 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
402 $(TAGS_FILES) $(LISP)
403 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
404 unique=`for i in $$list; do \
405 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
406 done | \
407 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
408 END { if (nonempty) { for (i in files) print i; }; }'`; \
447 ctags: ctags-am
448
449 CTAGS: ctags
450 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
451 $(am__define_uniq_tagged_files); \
409452 test -z "$(CTAGS_ARGS)$$unique" \
410453 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
411454 $$unique
414457 here=`$(am__cd) $(top_builddir) && pwd` \
415458 && $(am__cd) $(top_srcdir) \
416459 && gtags -i $(GTAGS_ARGS) "$$here"
460 cscopelist: cscopelist-am
461
462 cscopelist-am: $(am__tagged_files)
463 list='$(am__tagged_files)'; \
464 case "$(srcdir)" in \
465 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
466 *) sdir=$(subdir)/$(srcdir) ;; \
467 esac; \
468 for i in $$list; do \
469 if test -f "$$i"; then \
470 echo "$(subdir)/$$i"; \
471 else \
472 echo "$$sdir/$$i"; \
473 fi; \
474 done >> $(top_builddir)/cscope.files
417475
418476 distclean-tags:
419477 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
555613
556614 .MAKE: install-am install-strip
557615
558 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
559 clean-libtool clean-noinstLTLIBRARIES ctags distclean \
560 distclean-compile distclean-generic distclean-libtool \
561 distclean-tags distdir dvi dvi-am html html-am info info-am \
562 install install-am install-data install-data-am install-dvi \
563 install-dvi-am install-exec install-exec-am install-html \
564 install-html-am install-info install-info-am install-man \
565 install-pdf install-pdf-am install-ps install-ps-am \
566 install-strip installcheck installcheck-am installdirs \
567 maintainer-clean maintainer-clean-generic mostlyclean \
568 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
569 pdf pdf-am ps ps-am tags uninstall uninstall-am
616 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
617 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
618 ctags-am distclean distclean-compile distclean-generic \
619 distclean-libtool distclean-tags distdir dvi dvi-am html \
620 html-am info info-am install install-am install-data \
621 install-data-am install-dvi install-dvi-am install-exec \
622 install-exec-am install-html install-html-am install-info \
623 install-info-am install-man install-pdf install-pdf-am \
624 install-ps install-ps-am install-strip installcheck \
625 installcheck-am installdirs maintainer-clean \
626 maintainer-clean-generic mostlyclean mostlyclean-compile \
627 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
628 tags tags-am uninstall uninstall-am
570629
571630
572631 # Tell versions [3.59,3.63) of GNU make to not export all variables.
3434
3535 #include <stdio.h>
3636 #include <stddef.h>
37 #ifdef HAVE_LIBBSD
38 # include <bsd/stdio.h>
39 # include <bsd/string.h>
40 # include <bsd/unistd.h>
41 #endif
3742
3843 #if !HAVE_STRLCPY
3944 size_t strlcpy(char *, const char *, size_t);
4752 char *fgetln(FILE *, size_t *);
4853 #endif
4954
55 #if !HAVE_SETPROCTITLE
56 void setproctitle(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
57 #endif
58
5059 #if !HAVE_MALLOC
5160 void *malloc(size_t size);
5261 #endif
0 /* -*- mode: c; c-file-style: "openbsd" -*- */
1 /*
2 * Copyright (c) 2013 Vincent Bernat <bernat@luffy.cx>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 void
18 setproctitle(const char *fmt, ...)
19 {
20 /* Do nothing. */
21 }
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1615
1716
1817 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
2231 case $$MAKEFLAGS in \
2332 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3336 esac; \
34 test $$am__dry = yes; \
35 }
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3663 pkgdatadir = $(datadir)/@PACKAGE@
3764 pkgincludedir = $(includedir)/@PACKAGE@
3865 pkglibdir = $(libdir)/@PACKAGE@
100127 @USE_SNMP_TRUE@am__append_9 = @NETSNMP_CFLAGS@
101128 @USE_SNMP_TRUE@am__append_10 = @NETSNMP_LIBS@
102129 subdir = src/daemon
103 DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
104 $(srcdir)/Makefile.in
130 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
131 $(top_srcdir)/depcomp $(dist_man_MANS)
105132 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
106133 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
107134 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
176203 AM_V_lt = $(am__v_lt_@AM_V@)
177204 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
178205 am__v_lt_0 = --silent
206 am__v_lt_1 =
179207 liblldpd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
180208 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(liblldpd_la_CFLAGS) \
181209 $(CFLAGS) $(liblldpd_la_LDFLAGS) $(LDFLAGS) -o $@
184212 am_lldpd_OBJECTS = main.$(OBJEXT)
185213 lldpd_OBJECTS = $(am_lldpd_OBJECTS)
186214 lldpd_DEPENDENCIES = liblldpd.la
215 AM_V_P = $(am__v_P_@AM_V@)
216 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
217 am__v_P_0 = false
218 am__v_P_1 = :
219 AM_V_GEN = $(am__v_GEN_@AM_V@)
220 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
221 am__v_GEN_0 = @echo " GEN " $@;
222 am__v_GEN_1 =
223 AM_V_at = $(am__v_at_@AM_V@)
224 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
225 am__v_at_0 = @
226 am__v_at_1 =
187227 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
188228 depcomp = $(SHELL) $(top_srcdir)/depcomp
189229 am__depfiles_maybe = depfiles
196236 $(AM_CFLAGS) $(CFLAGS)
197237 AM_V_CC = $(am__v_CC_@AM_V@)
198238 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
199 am__v_CC_0 = @echo " CC " $@;
200 AM_V_at = $(am__v_at_@AM_V@)
201 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
202 am__v_at_0 = @
239 am__v_CC_0 = @echo " CC " $@;
240 am__v_CC_1 =
203241 CCLD = $(CC)
204242 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
205243 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
206244 $(AM_LDFLAGS) $(LDFLAGS) -o $@
207245 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
208246 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
209 am__v_CCLD_0 = @echo " CCLD " $@;
210 AM_V_GEN = $(am__v_GEN_@AM_V@)
211 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
212 am__v_GEN_0 = @echo " GEN " $@;
247 am__v_CCLD_0 = @echo " CCLD " $@;
248 am__v_CCLD_1 =
213249 SOURCES = $(liblldpd_la_SOURCES) $(lldpd_SOURCES)
214250 DIST_SOURCES = $(am__liblldpd_la_SOURCES_DIST) $(lldpd_SOURCES)
215251 am__can_run_installinfo = \
247283 man8dir = $(mandir)/man8
248284 NROFF = nroff
249285 MANS = $(dist_man_MANS)
286 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
287 # Read a list of newline-separated strings from the standard input,
288 # and print each of them once, without duplicates. Input order is
289 # *not* preserved.
290 am__uniquify_input = $(AWK) '\
291 BEGIN { nonempty = 0; } \
292 { items[$$0] = 1; nonempty = 1; } \
293 END { if (nonempty) { for (i in items) print i; }; } \
294 '
295 # Make sure the list of sources is unique. This is necessary because,
296 # e.g., the same source file might be shared among _SOURCES variables
297 # for different programs/libraries.
298 am__define_uniq_tagged_files = \
299 list='$(am__tagged_files)'; \
300 unique=`for i in $$list; do \
301 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
302 done | $(am__uniquify_input)`
250303 ETAGS = etags
251304 CTAGS = ctags
252305 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
467520
468521 clean-noinstLTLIBRARIES:
469522 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
470 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
471 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
472 test "$$dir" != "$$p" || dir=.; \
473 echo "rm -f \"$${dir}/so_locations\""; \
474 rm -f "$${dir}/so_locations"; \
475 done
523 @list='$(noinst_LTLIBRARIES)'; \
524 locs=`for p in $$list; do echo $$p; done | \
525 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
526 sort -u`; \
527 test -z "$$locs" || { \
528 echo rm -f $${locs}; \
529 rm -f $${locs}; \
530 }
531
476532 liblldpd.la: $(liblldpd_la_OBJECTS) $(liblldpd_la_DEPENDENCIES) $(EXTRA_liblldpd_la_DEPENDENCIES)
477533 $(AM_V_CCLD)$(liblldpd_la_LINK) $(liblldpd_la_OBJECTS) $(liblldpd_la_LIBADD) $(LIBS)
478534 install-sbinPROGRAMS: $(sbin_PROGRAMS)
484540 fi; \
485541 for p in $$list; do echo "$$p $$p"; done | \
486542 sed 's/$(EXEEXT)$$//' | \
487 while read p p1; do if test -f $$p || test -f $$p1; \
488 then echo "$$p"; echo "$$p"; else :; fi; \
543 while read p p1; do if test -f $$p \
544 || test -f $$p1 \
545 ; then echo "$$p"; echo "$$p"; else :; fi; \
489546 done | \
490 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
547 sed -e 'p;s,.*/,,;n;h' \
548 -e 's|.*|.|' \
491549 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
492550 sed 'N;N;N;s,\n, ,g' | \
493551 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
508566 @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
509567 files=`for p in $$list; do echo "$$p"; done | \
510568 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
511 -e 's/$$/$(EXEEXT)/' `; \
569 -e 's/$$/$(EXEEXT)/' \
570 `; \
512571 test -n "$$list" || exit 0; \
513572 echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
514573 cd "$(DESTDIR)$(sbindir)" && rm -f $$files
521580 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
522581 echo " rm -f" $$list; \
523582 rm -f $$list
583
524584 lldpd$(EXEEXT): $(lldpd_OBJECTS) $(lldpd_DEPENDENCIES) $(EXTRA_lldpd_DEPENDENCIES)
525585 @rm -f lldpd$(EXEEXT)
526586 $(AM_V_CCLD)$(LINK) $(lldpd_OBJECTS) $(lldpd_LDADD) $(LIBS)
811871 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
812872 dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir)
813873
814 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
815 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
816 unique=`for i in $$list; do \
817 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
818 done | \
819 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
820 END { if (nonempty) { for (i in files) print i; }; }'`; \
821 mkid -fID $$unique
822 tags: TAGS
823
824 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
825 $(TAGS_FILES) $(LISP)
874 ID: $(am__tagged_files)
875 $(am__define_uniq_tagged_files); mkid -fID $$unique
876 tags: tags-am
877 TAGS: tags
878
879 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
826880 set x; \
827881 here=`pwd`; \
828 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
829 unique=`for i in $$list; do \
830 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
831 done | \
832 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
833 END { if (nonempty) { for (i in files) print i; }; }'`; \
882 $(am__define_uniq_tagged_files); \
834883 shift; \
835884 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
836885 test -n "$$unique" || unique=$$empty_fix; \
842891 $$unique; \
843892 fi; \
844893 fi
845 ctags: CTAGS
846 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
847 $(TAGS_FILES) $(LISP)
848 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
849 unique=`for i in $$list; do \
850 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
851 done | \
852 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
853 END { if (nonempty) { for (i in files) print i; }; }'`; \
894 ctags: ctags-am
895
896 CTAGS: ctags
897 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
898 $(am__define_uniq_tagged_files); \
854899 test -z "$(CTAGS_ARGS)$$unique" \
855900 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
856901 $$unique
859904 here=`$(am__cd) $(top_builddir) && pwd` \
860905 && $(am__cd) $(top_srcdir) \
861906 && gtags -i $(GTAGS_ARGS) "$$here"
907 cscopelist: cscopelist-am
908
909 cscopelist-am: $(am__tagged_files)
910 list='$(am__tagged_files)'; \
911 case "$(srcdir)" in \
912 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
913 *) sdir=$(subdir)/$(srcdir) ;; \
914 esac; \
915 for i in $$list; do \
916 if test -f "$$i"; then \
917 echo "$(subdir)/$$i"; \
918 else \
919 echo "$$sdir/$$i"; \
920 fi; \
921 done >> $(top_builddir)/cscope.files
862922
863923 distclean-tags:
864924 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
865925
866926 distdir: $(DISTFILES)
867 @list='$(MANS)'; if test -n "$$list"; then \
868 list=`for p in $$list; do \
869 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
870 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
871 if test -n "$$list" && \
872 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
873 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
874 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
875 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
876 echo " typically \`make maintainer-clean' will remove them" >&2; \
877 exit 1; \
878 else :; fi; \
879 else :; fi
880927 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
881928 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
882929 list='$(DISTFILES)'; \
10181065
10191066 .MAKE: install-am install-strip
10201067
1021 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
1022 clean-libtool clean-noinstLTLIBRARIES clean-sbinPROGRAMS ctags \
1023 distclean distclean-compile distclean-generic \
1024 distclean-libtool distclean-tags distdir dvi dvi-am html \
1025 html-am info info-am install install-am install-data \
1026 install-data-am install-dvi install-dvi-am install-exec \
1027 install-exec-am install-html install-html-am install-info \
1028 install-info-am install-man install-man8 install-pdf \
1029 install-pdf-am install-ps install-ps-am install-sbinPROGRAMS \
1030 install-strip installcheck installcheck-am installdirs \
1031 maintainer-clean maintainer-clean-generic mostlyclean \
1032 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1033 pdf pdf-am ps ps-am tags uninstall uninstall-am uninstall-man \
1068 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
1069 clean-libtool clean-noinstLTLIBRARIES clean-sbinPROGRAMS \
1070 cscopelist-am ctags ctags-am distclean distclean-compile \
1071 distclean-generic distclean-libtool distclean-tags distdir dvi \
1072 dvi-am html html-am info info-am install install-am \
1073 install-data install-data-am install-dvi install-dvi-am \
1074 install-exec install-exec-am install-html install-html-am \
1075 install-info install-info-am install-man install-man8 \
1076 install-pdf install-pdf-am install-ps install-ps-am \
1077 install-sbinPROGRAMS install-strip installcheck \
1078 installcheck-am installdirs maintainer-clean \
1079 maintainer-clean-generic mostlyclean mostlyclean-compile \
1080 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1081 tags tags-am uninstall uninstall-am uninstall-man \
10341082 uninstall-man8 uninstall-sbinPROGRAMS
10351083
10361084
3232 {
3333 ssize_t output_len;
3434 log_debug("rpc", "client requested configuration");
35 output_len = marshal_serialize(lldpd_config, &cfg->g_config, output);
35 output_len = lldpd_config_serialize(&cfg->g_config, output);
3636 if (output_len <= 0) {
3737 output_len = 0;
3838 *type = NONE;
4646 void *input, int input_len, void **output, int *subscribed)
4747 {
4848 struct lldpd_config *config;
49 void *p;
5049
5150 log_debug("rpc", "client request a change in configuration");
5251 /* Get the proposed configuration. */
53 if (marshal_unserialize(lldpd_config, input, input_len, &p) <= 0) {
52 if (lldpd_config_unserialize(input, input_len, &config) <= 0) {
5453 *type = NONE;
5554 return 0;
5655 }
57 config = p;
58
56
5957 /* What needs to be done? Transmit delay? */
6058 if (config->c_tx_interval > 0) {
6159 log_debug("rpc", "client change transmit interval to %d",
6260 config->c_tx_interval);
6361 cfg->g_config.c_tx_interval = config->c_tx_interval;
62 LOCAL_CHASSIS(cfg)->c_ttl = cfg->g_config.c_tx_interval *
63 cfg->g_config.c_tx_hold;
64 }
65 if (config->c_tx_hold > 0) {
66 log_debug("rpc", "client change transmit hold to %d",
67 config->c_tx_hold);
68 cfg->g_config.c_tx_hold = config->c_tx_hold;
69 LOCAL_CHASSIS(cfg)->c_ttl = cfg->g_config.c_tx_interval *
70 cfg->g_config.c_tx_hold;
6471 }
6572 if (config->c_tx_interval < 0) {
6673 log_debug("rpc", "client asked for immediate retransmission");
8592 cfg->g_config.c_tx_fast_interval = config->c_tx_fast_interval;
8693 }
8794 #endif
95 if (config->c_iface_pattern) {
96 log_debug("rpc", "change interface pattern to %s", config->c_iface_pattern);
97 free(cfg->g_config.c_iface_pattern);
98 cfg->g_config.c_iface_pattern = strdup(config->c_iface_pattern);
99 levent_update_now(cfg);
100 }
101 if (config->c_description) {
102 log_debug("rpc", "change chassis description to %s", config->c_description);
103 free(cfg->g_config.c_description);
104 cfg->g_config.c_description = strdup(config->c_description);
105 levent_update_now(cfg);
106 }
107 if (config->c_platform) {
108 log_debug("rpc", "change platform description to %s", config->c_platform);
109 free(cfg->g_config.c_platform);
110 cfg->g_config.c_platform = strdup(config->c_platform);
111 levent_update_now(cfg);
112 }
88113
89114 lldpd_config_cleanup(config);
115 free(config);
90116
91117 return 0;
92118 }
116142 TAILQ_INSERT_TAIL(&ifs, iff, next);
117143 }
118144
119 output_len = marshal_serialize(lldpd_interface_list, &ifs, output);
145 output_len = lldpd_interface_list_serialize(&ifs, output);
120146 if (output_len <= 0) {
121147 output_len = 0;
122148 *type = NONE;
143169 void *input, int input_len, void **output, int *subscribed)
144170 {
145171 char *name;
172 struct lldpd_hardware *hardware;
146173 void *p;
147 struct lldpd_hardware *hardware;
148174
149175 /* Get name of the interface */
150176 if (marshal_unserialize(string, input, input_len, &p) <= 0) {
157183 log_debug("rpc", "client request interface %s", name);
158184 TAILQ_FOREACH(hardware, &cfg->g_hardware, h_entries)
159185 if (!strcmp(hardware->h_ifname, name)) {
160 int output_len = marshal_serialize(lldpd_hardware, hardware, output);
186 int output_len = lldpd_hardware_serialize(hardware, output);
161187 free(name);
162188 if (output_len <= 0) {
163189 *type = NONE;
181207 void *input, int input_len, void **output, int *subscribed)
182208 {
183209 int ret = 0;
184 void *p;
185210 struct lldpd_port_set *set = NULL;
186211 struct lldpd_hardware *hardware = NULL;
187212 #ifdef ENABLE_LLDPMED
188213 struct lldpd_med_loc *loc = NULL;
189214 #endif
190215
191 if (marshal_unserialize(lldpd_port_set, input, input_len, &p) <= 0) {
216 if (lldpd_port_set_unserialize(input, input_len, &set) <= 0) {
192217 *type = NONE;
193218 return 0;
194219 }
195 set = p;
196220 if (!set->ifname) {
197221 log_warnx("rpc", "no interface provided");
198222 goto set_port_finished;
308308 hardware->h_ifname);
309309 goto malformed;
310310 }
311 chassis->c_ttl = LLDPD_TTL;
311 chassis->c_ttl = cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold;
312312 chassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_LLADDR;
313313 chassis->c_id_len = ETHER_ADDR_LEN;
314314 if ((chassis->c_id = (char *)malloc(ETHER_ADDR_LEN)) == NULL) {
254254 sizeof(backup_p_entries));
255255 memset(&neighbor->p_entries, 0,
256256 sizeof(backup_p_entries));
257 output_len = marshal_serialize(lldpd_neighbor_change,
258 &neigh, &output);
257 output_len = lldpd_neighbor_change_serialize(&neigh, &output);
259258 memcpy(&neighbor->p_entries, &backup_p_entries,
260259 sizeof(backup_p_entries));
261260
402401 if (cfg->g_iface_event != NULL)
403402 tv.tv_sec *= 20;
404403 event_add(cfg->g_main_loop, &tv);
404 }
405
406 void
407 levent_update_now(struct lldpd *cfg)
408 {
409 if (cfg->g_main_loop)
410 event_active(cfg->g_main_loop, EV_TIMEOUT, 1);
405411 }
406412
407413 void
688694 TAILQ_FOREACH(hardware, &cfg->g_hardware, h_entries) {
689695 TAILQ_FOREACH(port, &hardware->h_rports, p_entries) {
690696 next = port->p_chassis->c_ttl - (now - port->p_lastupdate);
691 if (next > 0 && next < tv.tv_sec)
697 if (next >= 0 && next < tv.tv_sec)
692698 tv.tv_sec = next;
693699 }
694700 }
213213 }
214214
215215 static void
216 lldpd_count_neighbors(struct lldpd *cfg)
217 {
218 #if HAVE_SETPROCTITLE
219 struct lldpd_chassis *chassis;
220 const char *neighbor;
221 unsigned neighbors = 0;
222 TAILQ_FOREACH(chassis, &cfg->g_chassis, c_entries) {
223 neighbors++;
224 neighbor = chassis->c_name;
225 }
226 neighbors--;
227 if (neighbors == 0)
228 setproctitle("no neighbor");
229 else if (neighbors == 1 && neighbor)
230 setproctitle("connected to %s", neighbor);
231 else
232 setproctitle("%d neighbor%s", neighbors,
233 (neighbors > 1)?"s":"");
234 #else
235 (void)cfg;
236 #endif
237 }
238
239 static void
216240 notify_clients_deletion(struct lldpd_hardware *hardware,
217241 struct lldpd_port *rport)
218242 {
239263 char save[offsetof(struct lldpd_port, p_id_subtype)];
240264 memcpy(save, port, sizeof(save));
241265 memset(port, 0, sizeof(save));
242 output_len = marshal_serialize(lldpd_port, port, (void**)&output);
266 output_len = lldpd_port_serialize(port, (void**)&output);
243267 memcpy(port, save, sizeof(save));
244268 if (output_len == -1) {
245269 log_warnx("localchassis",
293317 }
294318 }
295319
320 lldpd_count_neighbors(cfg);
296321 levent_schedule_cleanup(cfg);
297322 }
298323
377402 if (s < sizeof(struct ether_header) + 4)
378403 /* Too short, just discard it */
379404 return;
405
380406 /* Decapsulate VLAN frames */
381 if (((struct ether_header*)frame)->ether_type == htons(ETHERTYPE_VLAN)) {
407 struct ether_header eheader;
408 memcpy(&eheader, frame, sizeof(struct ether_header));
409 if (eheader.ether_type == htons(ETHERTYPE_VLAN)) {
382410 /* VLAN decapsulation means to shift 4 bytes left the frame from
383411 * offset 2*ETHER_ADDR_LEN */
384412 memmove(frame + 2*ETHER_ADDR_LEN, frame + 2*ETHER_ADDR_LEN + 4, s - 2*ETHER_ADDR_LEN);
790818 hardware->h_ifname);
791819 lldpd_decode(cfg, buffer, n, hardware);
792820 lldpd_hide_all(cfg); /* Immediatly hide */
821 lldpd_count_neighbors(cfg);
793822 free(buffer);
794823 }
795824
9821011 lldpd_update_localports(cfg);
9831012 log_debug("loop", "update information for local chassis");
9841013 lldpd_update_localchassis(cfg);
1014 lldpd_count_neighbors(cfg);
9851015 }
9861016
9871017 static void
14001430 cfg->g_config.c_paused = 1;
14011431 cfg->g_config.c_receiveonly = receiveonly;
14021432 cfg->g_config.c_tx_interval = LLDPD_TX_INTERVAL;
1433 cfg->g_config.c_tx_hold = LLDPD_TX_HOLD;
14031434 cfg->g_config.c_max_neighbors = LLDPD_MAX_NEIGHBORS;
14041435 #ifdef ENABLE_LLDPMED
14051436 cfg->g_config.c_enable_fast_start = enable_fast_start;
14491480 #endif
14501481
14511482 /* Set TTL */
1452 lchassis->c_ttl = LLDPD_TTL;
1483 lchassis->c_ttl = cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold;
14531484
14541485 log_debug("main", "initialize protocols");
14551486 cfg->g_protocols = protos;
6161
6262 #define SYSFS_CLASS_NET "/sys/class/net/"
6363 #define SYSFS_CLASS_DMI "/sys/class/dmi/id/"
64 #define LLDPD_TTL 120
6564 #define LLDPD_TX_INTERVAL 30
65 #define LLDPD_TX_HOLD 4
66 #define LLDPD_TTL LLDPD_TX_INTERVAL * LLDPD_TX_HOLD
6667 #define LLDPD_TX_MSGDELAY 1
6768 #define LLDPD_MAX_NEIGHBORS 4
6869 #define LLDPD_PID_FILE "/var/run/lldpd.pid"
144145 void levent_hardware_release(struct lldpd_hardware *);
145146 void levent_ctl_notify(char *, int, struct lldpd_port *);
146147 void levent_send_now(struct lldpd *);
148 void levent_update_now(struct lldpd *);
147149 int levent_iface_subscribe(struct lldpd *, int);
148150 void levent_schedule_pdu(struct lldpd_hardware *);
149151 void levent_schedule_cleanup(struct lldpd *);
229229 ctlname[len] = 0;
230230
231231 ctl_cleanup(ctlname);
232 free(ctlname);
232233
233234 /* Ack */
234235 must_write(remote, &rc, sizeof(int));
477478
478479 /* Don't see sent packets */
479480 #ifdef HOST_OS_OPENBSD
480 enable = BPF_DIRECTION_IN;
481 enable = BPF_DIRECTION_OUT;
481482 if (ioctl(fd, BIOCSDIRFILT, (caddr_t)&enable) < 0)
482483 #else
483484 enable = 0;
630631 int cmd;
631632 struct dispatch_actions *a;
632633
634 setproctitle("monitor");
633635 while (!may_read(remote, &cmd, sizeof(int))) {
634636 for (a = actions; a->function != NULL; a++) {
635637 if (cmd == a->msg) {
363363 goto malformed;
364364 }
365365 TAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);
366 chassis->c_ttl = LLDPD_TTL;
366 chassis->c_ttl = cfg?(cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold):
367 LLDPD_TTL;
367368
368369 port->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;
369370 if (asprintf(&port->p_id, "%02x-%02x-%02x",
44
55 liblldpctl_la_SOURCES = lldpctl.h private.h errors.c connection.c atom.c atom-private.c
66 liblldpctl_la_LIBADD = $(top_builddir)/src/libcommon-daemon-lib.la
7 liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 3:0:3
7 liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 4:0:0
88
99 # -version-info format is `current`:`revision`:`age`. For more details, see:
1010 # http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1716
1817
1918 VPATH = @srcdir@
20 am__make_dryrun = \
21 { \
22 am__dry=no; \
19 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
20 am__make_running_with_option = \
21 case $${target_option-} in \
22 ?) ;; \
23 *) echo "am__make_running_with_option: internal error: invalid" \
24 "target option '$${target_option-}' specified" >&2; \
25 exit 1;; \
26 esac; \
27 has_opt=no; \
28 sane_makeflags=$$MAKEFLAGS; \
29 if $(am__is_gnu_make); then \
30 sane_makeflags=$$MFLAGS; \
31 else \
2332 case $$MAKEFLAGS in \
2433 *\\[\ \ ]*) \
25 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
26 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
27 *) \
28 for am__flg in $$MAKEFLAGS; do \
29 case $$am__flg in \
30 *=*|--*) ;; \
31 *n*) am__dry=yes; break;; \
32 esac; \
33 done;; \
34 bs=\\; \
35 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
36 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3437 esac; \
35 test $$am__dry = yes; \
36 }
38 fi; \
39 skip_next=no; \
40 strip_trailopt () \
41 { \
42 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
43 }; \
44 for flg in $$sane_makeflags; do \
45 test $$skip_next = yes && { skip_next=no; continue; }; \
46 case $$flg in \
47 *=*|--*) continue;; \
48 -*I) strip_trailopt 'I'; skip_next=yes;; \
49 -*I?*) strip_trailopt 'I';; \
50 -*O) strip_trailopt 'O'; skip_next=yes;; \
51 -*O?*) strip_trailopt 'O';; \
52 -*l) strip_trailopt 'l'; skip_next=yes;; \
53 -*l?*) strip_trailopt 'l';; \
54 -[dEDm]) skip_next=yes;; \
55 -[JT]) skip_next=yes;; \
56 esac; \
57 case $$flg in \
58 *$$target_option*) has_opt=yes; break;; \
59 esac; \
60 done; \
61 test $$has_opt = yes
62 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
63 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3764 pkgdatadir = $(datadir)/@PACKAGE@
3865 pkgincludedir = $(includedir)/@PACKAGE@
3966 pkglibdir = $(libdir)/@PACKAGE@
5380 build_triplet = @build@
5481 host_triplet = @host@
5582 subdir = src/lib
56 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
57 $(srcdir)/Makefile.in $(srcdir)/lldpctl.pc.in
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(srcdir)/lldpctl.pc.in $(top_srcdir)/depcomp \
85 $(include_HEADERS)
5886 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
5987 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
6088 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
112140 AM_V_lt = $(am__v_lt_@AM_V@)
113141 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
114142 am__v_lt_0 = --silent
143 am__v_lt_1 =
115144 liblldpctl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
116145 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
117146 $(liblldpctl_la_LDFLAGS) $(LDFLAGS) -o $@
147 AM_V_P = $(am__v_P_@AM_V@)
148 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
149 am__v_P_0 = false
150 am__v_P_1 = :
151 AM_V_GEN = $(am__v_GEN_@AM_V@)
152 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
153 am__v_GEN_0 = @echo " GEN " $@;
154 am__v_GEN_1 =
155 AM_V_at = $(am__v_at_@AM_V@)
156 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
157 am__v_at_0 = @
158 am__v_at_1 =
118159 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
119160 depcomp = $(SHELL) $(top_srcdir)/depcomp
120161 am__depfiles_maybe = depfiles
127168 $(AM_CFLAGS) $(CFLAGS)
128169 AM_V_CC = $(am__v_CC_@AM_V@)
129170 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
130 am__v_CC_0 = @echo " CC " $@;
131 AM_V_at = $(am__v_at_@AM_V@)
132 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
133 am__v_at_0 = @
171 am__v_CC_0 = @echo " CC " $@;
172 am__v_CC_1 =
134173 CCLD = $(CC)
135174 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
136175 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
137176 $(AM_LDFLAGS) $(LDFLAGS) -o $@
138177 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
139178 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
140 am__v_CCLD_0 = @echo " CCLD " $@;
141 AM_V_GEN = $(am__v_GEN_@AM_V@)
142 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
143 am__v_GEN_0 = @echo " GEN " $@;
179 am__v_CCLD_0 = @echo " CCLD " $@;
180 am__v_CCLD_1 =
144181 SOURCES = $(liblldpctl_la_SOURCES)
145182 DIST_SOURCES = $(liblldpctl_la_SOURCES)
146183 am__can_run_installinfo = \
150187 esac
151188 DATA = $(pkgconfig_DATA)
152189 HEADERS = $(include_HEADERS)
190 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
191 # Read a list of newline-separated strings from the standard input,
192 # and print each of them once, without duplicates. Input order is
193 # *not* preserved.
194 am__uniquify_input = $(AWK) '\
195 BEGIN { nonempty = 0; } \
196 { items[$$0] = 1; nonempty = 1; } \
197 END { if (nonempty) { for (i in items) print i; }; } \
198 '
199 # Make sure the list of sources is unique. This is necessary because,
200 # e.g., the same source file might be shared among _SOURCES variables
201 # for different programs/libraries.
202 am__define_uniq_tagged_files = \
203 list='$(am__tagged_files)'; \
204 unique=`for i in $$list; do \
205 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
206 done | $(am__uniquify_input)`
153207 ETAGS = etags
154208 CTAGS = ctags
155209 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
320374 include_HEADERS = lldpctl.h
321375 liblldpctl_la_SOURCES = lldpctl.h private.h errors.c connection.c atom.c atom-private.c
322376 liblldpctl_la_LIBADD = $(top_builddir)/src/libcommon-daemon-lib.la
323 liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 3:0:3
377 liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 4:0:0
324378
325379 # -version-info format is `current`:`revision`:`age`. For more details, see:
326380 # http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91
362416 $(am__aclocal_m4_deps):
363417 lldpctl.pc: $(top_builddir)/config.status $(srcdir)/lldpctl.pc.in
364418 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
419
365420 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
366421 @$(NORMAL_INSTALL)
367422 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
388443
389444 clean-libLTLIBRARIES:
390445 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
391 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
392 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
393 test "$$dir" != "$$p" || dir=.; \
394 echo "rm -f \"$${dir}/so_locations\""; \
395 rm -f "$${dir}/so_locations"; \
396 done
446 @list='$(lib_LTLIBRARIES)'; \
447 locs=`for p in $$list; do echo $$p; done | \
448 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
449 sort -u`; \
450 test -z "$$locs" || { \
451 echo rm -f $${locs}; \
452 rm -f $${locs}; \
453 }
454
397455 liblldpctl.la: $(liblldpctl_la_OBJECTS) $(liblldpctl_la_DEPENDENCIES) $(EXTRA_liblldpctl_la_DEPENDENCIES)
398456 $(AM_V_CCLD)$(liblldpctl_la_LINK) -rpath $(libdir) $(liblldpctl_la_OBJECTS) $(liblldpctl_la_LIBADD) $(LIBS)
399457
477535 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
478536 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
479537
480 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
481 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
482 unique=`for i in $$list; do \
483 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
484 done | \
485 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
486 END { if (nonempty) { for (i in files) print i; }; }'`; \
487 mkid -fID $$unique
488 tags: TAGS
489
490 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
491 $(TAGS_FILES) $(LISP)
538 ID: $(am__tagged_files)
539 $(am__define_uniq_tagged_files); mkid -fID $$unique
540 tags: tags-am
541 TAGS: tags
542
543 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
492544 set x; \
493545 here=`pwd`; \
494 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
495 unique=`for i in $$list; do \
496 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
497 done | \
498 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
499 END { if (nonempty) { for (i in files) print i; }; }'`; \
546 $(am__define_uniq_tagged_files); \
500547 shift; \
501548 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
502549 test -n "$$unique" || unique=$$empty_fix; \
508555 $$unique; \
509556 fi; \
510557 fi
511 ctags: CTAGS
512 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
513 $(TAGS_FILES) $(LISP)
514 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
515 unique=`for i in $$list; do \
516 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
517 done | \
518 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
519 END { if (nonempty) { for (i in files) print i; }; }'`; \
558 ctags: ctags-am
559
560 CTAGS: ctags
561 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
562 $(am__define_uniq_tagged_files); \
520563 test -z "$(CTAGS_ARGS)$$unique" \
521564 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
522565 $$unique
525568 here=`$(am__cd) $(top_builddir) && pwd` \
526569 && $(am__cd) $(top_srcdir) \
527570 && gtags -i $(GTAGS_ARGS) "$$here"
571 cscopelist: cscopelist-am
572
573 cscopelist-am: $(am__tagged_files)
574 list='$(am__tagged_files)'; \
575 case "$(srcdir)" in \
576 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
577 *) sdir=$(subdir)/$(srcdir) ;; \
578 esac; \
579 for i in $$list; do \
580 if test -f "$$i"; then \
581 echo "$(subdir)/$$i"; \
582 else \
583 echo "$$sdir/$$i"; \
584 fi; \
585 done >> $(top_builddir)/cscope.files
528586
529587 distclean-tags:
530588 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
670728
671729 .MAKE: install-am install-strip
672730
673 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
674 clean-libLTLIBRARIES clean-libtool ctags distclean \
675 distclean-compile distclean-generic distclean-libtool \
676 distclean-tags distdir dvi dvi-am html html-am info info-am \
677 install install-am install-data install-data-am install-dvi \
678 install-dvi-am install-exec install-exec-am install-html \
679 install-html-am install-includeHEADERS install-info \
680 install-info-am install-libLTLIBRARIES install-man install-pdf \
681 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
682 install-strip installcheck installcheck-am installdirs \
683 maintainer-clean maintainer-clean-generic mostlyclean \
684 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
685 pdf pdf-am ps ps-am tags uninstall uninstall-am \
686 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
687 uninstall-pkgconfigDATA
731 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
732 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
733 ctags-am distclean distclean-compile distclean-generic \
734 distclean-libtool distclean-tags distdir dvi dvi-am html \
735 html-am info info-am install install-am install-data \
736 install-data-am install-dvi install-dvi-am install-exec \
737 install-exec-am install-html install-html-am \
738 install-includeHEADERS install-info install-info-am \
739 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
740 install-pkgconfigDATA install-ps install-ps-am install-strip \
741 installcheck installcheck-am installdirs maintainer-clean \
742 maintainer-clean-generic mostlyclean mostlyclean-compile \
743 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
744 tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
745 uninstall-libLTLIBRARIES uninstall-pkgconfigDATA
688746
689747
690748 # Tell versions [3.59,3.63) of GNU make to not export all variables.
366366 return res?res:"";
367367 }
368368
369 static lldpctl_atom_t*
370 _lldpctl_atom_set_str_config(lldpctl_atom_t *atom, lldpctl_key_t key,
371 const char *value)
372 {
373 struct _lldpctl_atom_config_t *c =
374 (struct _lldpctl_atom_config_t *)atom;
375 struct lldpd_config config;
376 char *iface_pattern = NULL;
377 char *description = NULL;
378 int rc, len;
379
380 memset(&config, 0, sizeof(struct lldpd_config));
381 len = strlen(value) + 1;
382
383 switch (key) {
384 case lldpctl_k_config_iface_pattern:
385 iface_pattern = _lldpctl_alloc_in_atom(atom, strlen(value) + 1);
386 if (!iface_pattern)
387 return NULL;
388 memcpy(iface_pattern, value, len);
389 config.c_iface_pattern = iface_pattern;
390 free(c->config->c_iface_pattern);
391 c->config->c_iface_pattern = strdup(iface_pattern);
392 break;
393 case lldpctl_k_config_description:
394 description = _lldpctl_alloc_in_atom(atom, strlen(value) + 1);
395 if (!description)
396 return NULL;
397 memcpy(description, value, len);
398 config.c_description = description;
399 free(c->config->c_description);
400 c->config->c_description = strdup(description);
401 break;
402 case lldpctl_k_config_platform:
403 description = _lldpctl_alloc_in_atom(atom, strlen(value) + 1);
404 if (!description)
405 return NULL;
406 memcpy(description, value, len);
407 config.c_platform = description;
408 free(c->config->c_platform);
409 c->config->c_description = strdup(description);
410 break;
411 default:
412 SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST);
413 return NULL;
414 }
415
416 rc = _lldpctl_do_something(atom->conn,
417 CONN_STATE_SET_CONFIG_SEND, CONN_STATE_SET_CONFIG_RECV,
418 NULL,
419 SET_CONFIG, &config, &MARSHAL_INFO(lldpd_config),
420 NULL, NULL);
421 if (rc == 0) return atom;
422
423 return NULL;
424 }
425
369426 static long int
370427 _lldpctl_atom_get_int_config(lldpctl_atom_t *atom, lldpctl_key_t key)
371428 {
388445 case lldpctl_k_config_fast_start_interval:
389446 return c->config->c_tx_fast_interval;
390447 #endif
448 case lldpctl_k_config_tx_hold:
449 return c->config->c_tx_hold;
391450 default:
392451 return SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST);
393452 }
420479 config.c_tx_fast_interval = c->config->c_tx_fast_interval = value;
421480 break;
422481 #endif
482 case lldpctl_k_config_tx_hold:
483 config.c_tx_hold = value;
484 if (value > 0) c->config->c_tx_hold = value;
485 break;
423486 default:
424487 SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST);
425488 return NULL;
24692532 .init = _lldpctl_atom_new_config,
24702533 .free = _lldpctl_atom_free_config,
24712534 .get_str = _lldpctl_atom_get_str_config,
2535 .set_str = _lldpctl_atom_set_str_config,
24722536 .get_int = _lldpctl_atom_get_int_config,
24732537 .set_int = _lldpctl_atom_set_int_config },
24742538 { atom_interfaces_list, sizeof(struct _lldpctl_atom_interfaces_list_t),
156156 {
157157 uint8_t *buffer = NULL;
158158 ssize_t rc;
159 if (conn->input_buffer_len >= length) return 0;
160159
161160 if ((buffer = malloc(length)) == NULL)
162161 return SET_ERROR(conn, LLDPCTL_ERR_NOMEM);
584584 lldpctl_k_config_tx_interval, /**< `(I,WO)` Transmit interval. When set to -1, it is meant to transmit now. */
585585 lldpctl_k_config_receiveonly, /**< `(I,WO)` Receive only mode */
586586 lldpctl_k_config_mgmt_pattern, /**< `(S)` Pattern to choose the management address */
587 lldpctl_k_config_iface_pattern, /**< `(S)` Pattern of enabled interfaces */
587 lldpctl_k_config_iface_pattern, /**< `(S,WO)` Pattern of enabled interfaces */
588588 lldpctl_k_config_cid_pattern, /**< `(S)` Interface pattern to choose the chassis ID */
589 lldpctl_k_config_description, /**< `(S)` Chassis description overridden */
590 lldpctl_k_config_platform, /**< `(S)` Platform description overridden (CDP) */
589 lldpctl_k_config_description, /**< `(S,WO)` Chassis description overridden */
590 lldpctl_k_config_platform, /**< `(S,WO)` Platform description overridden (CDP) */
591591 lldpctl_k_config_advertise_version, /**< `(I)` Advertise version */
592592 lldpctl_k_config_lldpmed_noinventory, /**< `(I)` Disable LLDP-MED inventory */
593593 lldpctl_k_config_paused, /**< `(I)` lldpd is paused */
594594 lldpctl_k_config_fast_start_enabled, /**< `(I,WO)` Is fast start enabled */
595595 lldpctl_k_config_fast_start_interval, /**< `(I,WO)` Start fast transmit interval */
596596
597 lldpctl_k_interface_name, /**< `(S)` The interface name. */
598
599 lldpctl_k_port_name, /**< `(S)` The port name. Only works for a local port. */
597 lldpctl_k_interface_name = 1000, /**< `(S)` The interface name. */
598
599 lldpctl_k_port_name = 1100, /**< `(S)` The port name. Only works for a local port. */
600600 lldpctl_k_port_index, /**< `(I)` The port index. Only works for a local port. */
601601 /**
602602 * `(AL)` The list of known neighbors for this port.
603603 *
604604 * A neighbor is in fact a remote port.
605605 */
606 lldpctl_k_port_neighbors,
606 lldpctl_k_port_neighbors = 1200,
607607 lldpctl_k_port_protocol, /**< `(IS)` The protocol that was used to retrieve this information. */
608608 lldpctl_k_port_age, /**< `(I)` Age of information, seconds from epoch. */
609609 lldpctl_k_port_id_subtype, /**< `(IS)` The subtype ID of this port. */
611611 lldpctl_k_port_descr, /**< `(S)` The description of this port. */
612612 lldpctl_k_port_hidden, /**< `(I)` Is this port hidden (or should it be displayed?)? */
613613
614 lldpctl_k_port_dot3_mfs, /**< `(I)` MFS */
614 lldpctl_k_port_dot3_mfs = 1300, /**< `(I)` MFS */
615615 lldpctl_k_port_dot3_aggregid, /**< `(I)` Port aggregation ID */
616616 lldpctl_k_port_dot3_autoneg_support, /**< `(I)` Autonegotiation support. */
617617 lldpctl_k_port_dot3_autoneg_enabled, /**< `(I)` Autonegotiation enabled. */
618618 lldpctl_k_port_dot3_autoneg_advertised, /**< `(I)` Advertised protocols. See `LLDP_DOT3_LINK_AUTONEG_*` */
619619 lldpctl_k_port_dot3_mautype, /**< `(IS)` Current MAU type. See `LLDP_DOT3_MAU_*` */
620620
621 lldpctl_k_port_dot3_power, /**< `(A,WO)` Dot3 power related stuff. */
621 lldpctl_k_port_dot3_power = 1400, /**< `(A,WO)` Dot3 power related stuff. */
622622 lldpctl_k_dot3_power_devicetype, /**< `(IS,W)` Device type. See `LLDP_DOT3_POWER_PSE/PD` */
623623 lldpctl_k_dot3_power_supported, /**< `(I,W)` Is MDI power supported. */
624624 lldpctl_k_dot3_power_enabled, /**< `(I,W)` Is MDI power enabled. */
631631 lldpctl_k_dot3_power_allocated, /**< `(I,W)` 802.3AT power allocated */
632632 lldpctl_k_dot3_power_requested, /**< `(I,W)` 802.3AT power requested */
633633
634 lldpctl_k_port_vlan_pvid, /**< `(I)` Primary VLAN ID */
634 lldpctl_k_port_vlan_pvid = 1500, /**< `(I)` Primary VLAN ID */
635635 lldpctl_k_port_vlans, /**< `(AL)` List of VLAN */
636636 lldpctl_k_vlan_id, /**< `(I)` VLAN ID */
637637 lldpctl_k_vlan_name, /**< `(S)` VLAN name */
638638
639 lldpctl_k_port_ppvids, /**< `(AL)` List of PPVIDs */
639 lldpctl_k_port_ppvids = 1600, /**< `(AL)` List of PPVIDs */
640640 lldpctl_k_ppvid_status, /**< `(I)` Status of PPVID (see `LLDP_PPVID_CAP_*`) */
641641 lldpctl_k_ppvid_id, /**< `(I)` ID of PPVID */
642642
643 lldpctl_k_port_pis, /**< `(AL)` List of PIDs */
643 lldpctl_k_port_pis = 1700, /**< `(AL)` List of PIDs */
644644 lldpctl_k_pi_id, /**< `(B)` PID value */
645645
646 lldpctl_k_chassis_index, /**< `(I)` The chassis index. */
646 lldpctl_k_chassis_index = 1800, /**< `(I)` The chassis index. */
647647 lldpctl_k_chassis_id_subtype, /**< `(IS)` The subtype ID of this chassis. */
648648 lldpctl_k_chassis_id, /**< `(BS)` The ID of this chassis. */
649649 lldpctl_k_chassis_name, /**< `(S)` The name of this chassis. */
652652 lldpctl_k_chassis_cap_enabled, /**< `(I)` Enabled capabilities (see `LLDP_CAP_*`) */
653653 lldpctl_k_chassis_mgmt, /**< `(AL)` List of management addresses */
654654
655 lldpctl_k_chassis_med_type, /**< `(IS)` Chassis MED type. See `LLDP_MED_CLASS_*` */
655 lldpctl_k_chassis_med_type = 1900, /**< `(IS)` Chassis MED type. See `LLDP_MED_CLASS_*` */
656656 lldpctl_k_chassis_med_cap, /**< `(I)` Available MED capabilitied. See `LLDP_MED_CAP_*` */
657657 lldpctl_k_chassis_med_inventory_hw, /**< `(S)` LLDP MED inventory "Hardware Revision" */
658658 lldpctl_k_chassis_med_inventory_sw, /**< `(S)` LLDP MED inventory "Software Revision" */
662662 lldpctl_k_chassis_med_inventory_model, /**< `(S)` LLDP MED inventory "Model" */
663663 lldpctl_k_chassis_med_inventory_asset, /**< `(S)` LLDP MED inventory "Asset ID" */
664664
665 lldpctl_k_port_med_policies, /**< `(AL,WO)` MED policies attached to a port. */
665 lldpctl_k_port_med_policies = 2000, /**< `(AL,WO)` MED policies attached to a port. */
666666 lldpctl_k_med_policy_type, /**< `(IS,W)` MED policy app type. See `LLDP_MED_APPTYPE_*`. 0 if a policy is not defined. */
667667 lldpctl_k_med_policy_unknown, /**< `(I,W)` Is MED policy defined? */
668668 lldpctl_k_med_policy_tagged, /**< `(I,W)` MED policy tagging */
670670 lldpctl_k_med_policy_priority, /**< `(I,W)` MED policy priority */
671671 lldpctl_k_med_policy_dscp, /**< `(I,W)` MED policy DSCP */
672672
673 lldpctl_k_port_med_locations, /**< `(AL,WO)` MED locations attached to a port. */
673 lldpctl_k_port_med_locations = 2100, /**< `(AL,WO)` MED locations attached to a port. */
674674 lldpctl_k_med_location_format, /**< `(IS,W)` MED location format. See
675675 * `LLDP_MED_LOCFORMAT_*`. 0 if this
676676 * location is not defined. When written,
683683 lldpctl_k_med_location_altitude_unit, /**< `(S,W)` MED altitude unit. See `LLDP_MED_LOCATION_ALTITUDE_UNIT_*`.
684684 * Only if format is COORD. */
685685
686 lldpctl_k_med_location_country, /**< `(S,W)` MED country. Only if format is CIVIC. */
686 lldpctl_k_med_location_country = 2200, /**< `(S,W)` MED country. Only if format is CIVIC. */
687687 lldpctl_k_med_location_elin, /**< `(S,W)` MED ELIN. Only if format is ELIN. */
688688
689 lldpctl_k_med_location_ca_elements, /**< `(AL,WC)` MED civic address elements. Only if format is CIVIC */
689 lldpctl_k_med_location_ca_elements = 2300, /**< `(AL,WC)` MED civic address elements. Only if format is CIVIC */
690690 lldpctl_k_med_civicaddress_type, /**< `(IS,W)` MED civic address type. */
691691 lldpctl_k_med_civicaddress_value, /**< `(S,W)` MED civic address value. */
692692
693 lldpctl_k_port_med_power, /**< `(A,WO)` LLDP-MED power related stuff. */
693 lldpctl_k_port_med_power = 2400, /**< `(A,WO)` LLDP-MED power related stuff. */
694694 lldpctl_k_med_power_type, /**< `(IS,W)` LLDP MED power device type. See `LLDP_MED_POW_TYPE_*` */
695695 lldpctl_k_med_power_source, /**< `(IS,W)` LLDP MED power source. See `LLDP_MED_POW_SOURCE_*` */
696696 lldpctl_k_med_power_priority, /**< `(IS,W)` LLDP MED power priority. See `LLDP_MED_POW_PRIO_*` */
697697 lldpctl_k_med_power_val, /**< `(I,W)` LLDP MED power value */
698698
699 lldpctl_k_mgmt_ip, /**< `(S)` IP address */
700
701 lldpctl_k_tx_cnt, /**< `(I)` tx cnt. Only works for a local port. */
699 lldpctl_k_mgmt_ip = 3000, /**< `(S)` IP address */
700
701 lldpctl_k_tx_cnt = 4000, /**< `(I)` tx cnt. Only works for a local port. */
702702 lldpctl_k_rx_cnt, /**< `(I)` rx cnt. Only works for a local port. */
703703 lldpctl_k_rx_discarded_cnt, /**< `(I)` discarded cnt. Only works for a local port. */
704704 lldpctl_k_rx_unrecognized_cnt, /**< `(I)` unrecognized cnt. Only works for a local port. */
705705 lldpctl_k_ageout_cnt, /**< `(I)` ageout cnt. Only works for a local port. */
706706 lldpctl_k_insert_cnt, /**< `(I)` insert cnt. Only works for a local port. */
707707 lldpctl_k_delete_cnt, /**< `(I)` delete cnt. Only works for a local port. */
708 lldpctl_k_config_tx_hold, /**< `(I,WO)` Transmit hold interval. */
708709 } lldpctl_key_t;
709710
710711 /**
121121 port_next = TAILQ_NEXT(port, p_entries);
122122 del = (expire == NULL);
123123 if (expire &&
124 (now - port->p_lastupdate > port->p_chassis->c_ttl)) {
124 (now - port->p_lastupdate >= port->p_chassis->c_ttl)) {
125125 hardware->h_ageout_cnt++;
126126 hardware->h_delete_cnt++;
127127 expire(hardware, port);
4949 };
5050 MARSHAL_BEGIN(lldpd_ppvid)
5151 MARSHAL_TQE(lldpd_ppvid, p_entries)
52 MARSHAL_END;
52 MARSHAL_END(lldpd_ppvid);
5353
5454 struct lldpd_vlan {
5555 TAILQ_ENTRY(lldpd_vlan) v_entries;
5959 MARSHAL_BEGIN(lldpd_vlan)
6060 MARSHAL_TQE(lldpd_vlan, v_entries)
6161 MARSHAL_STR(lldpd_vlan, v_name)
62 MARSHAL_END;
62 MARSHAL_END(lldpd_vlan);
6363
6464 struct lldpd_pi {
6565 TAILQ_ENTRY(lldpd_pi) p_entries;
6969 MARSHAL_BEGIN(lldpd_pi)
7070 MARSHAL_TQE(lldpd_pi, p_entries)
7171 MARSHAL_FSTR(lldpd_pi, p_pi, p_pi_len)
72 MARSHAL_END;
72 MARSHAL_END(lldpd_pi);
7373 #endif
7474
7575 #ifdef ENABLE_LLDPMED
9292 };
9393 MARSHAL_BEGIN(lldpd_med_loc)
9494 MARSHAL_FSTR(lldpd_med_loc, data, data_len)
95 MARSHAL_END;
95 MARSHAL_END(lldpd_med_loc);
9696
9797 struct lldpd_med_power {
9898 u_int8_t devicetype; /* PD or PSE */
160160 };
161161 MARSHAL_BEGIN(lldpd_mgmt)
162162 MARSHAL_TQE(lldpd_mgmt, m_entries)
163 MARSHAL_END;
163 MARSHAL_END(lldpd_mgmt);
164164
165165 struct lldpd_chassis {
166166 TAILQ_ENTRY(lldpd_chassis) c_entries;
211211 MARSHAL_STR(lldpd_chassis, c_med_model)
212212 MARSHAL_STR(lldpd_chassis, c_med_asset)
213213 #endif
214 MARSHAL_END;
214 MARSHAL_END(lldpd_chassis);
215215
216216
217217 struct lldpd_port {
269269 MARSHAL_SUBTQ(lldpd_port, lldpd_ppvid, p_ppvids)
270270 MARSHAL_SUBTQ(lldpd_port, lldpd_pi, p_pids)
271271 #endif
272 MARSHAL_END;
272 MARSHAL_END(lldpd_port);
273273
274274 /* Used to modify some port related settings */
275275 struct lldpd_port_set {
293293 #ifdef ENABLE_DOT3
294294 MARSHAL_POINTER(lldpd_port_set, lldpd_dot3_power, dot3_power)
295295 #endif
296 MARSHAL_END;
296 MARSHAL_END(lldpd_port_set);
297297
298298 /* Smart mode / Hide mode */
299299 #define SMART_INCOMING_FILTER (1<<0) /* Incoming filtering enabled */
330330 int c_tx_fast_init; /* Num of lldpd lldppdu's for fast start */
331331 int c_tx_fast_interval; /* Time intr between sends during fast start */
332332 #endif
333 int c_tx_hold; /* Transmit hold */
333334 };
334335 MARSHAL_BEGIN(lldpd_config)
335336 MARSHAL_STR(lldpd_config, c_mgmt_pattern)
337338 MARSHAL_STR(lldpd_config, c_iface_pattern)
338339 MARSHAL_STR(lldpd_config, c_platform)
339340 MARSHAL_STR(lldpd_config, c_description)
340 MARSHAL_END;
341 MARSHAL_END(lldpd_config);
341342
342343 struct lldpd_frame {
343344 int size;
404405 MARSHAL_IGNORE(lldpd_hardware, h_cfg)
405406 MARSHAL_SUBSTRUCT(lldpd_hardware, lldpd_port, h_lport)
406407 MARSHAL_SUBTQ(lldpd_hardware, lldpd_port, h_rports)
407 MARSHAL_END;
408 MARSHAL_END(lldpd_hardware);
408409
409410 struct lldpd_interface {
410411 TAILQ_ENTRY(lldpd_interface) next;
413414 MARSHAL_BEGIN(lldpd_interface)
414415 MARSHAL_TQE(lldpd_interface, next)
415416 MARSHAL_STR(lldpd_interface, name)
416 MARSHAL_END;
417 MARSHAL_END(lldpd_interface);
417418 TAILQ_HEAD(lldpd_interface_list, lldpd_interface);
418419 MARSHAL_TQ(lldpd_interface_list, lldpd_interface);
419420
428429 MARSHAL_BEGIN(lldpd_neighbor_change)
429430 MARSHAL_STR(lldpd_neighbor_change, ifname)
430431 MARSHAL_POINTER(lldpd_neighbor_change, lldpd_port, neighbor)
431 MARSHAL_END;
432 MARSHAL_END(lldpd_neighbor_change);
432433
433434 /* Cleanup functions */
434435 void lldpd_chassis_mgmt_cleanup(struct lldpd_chassis *);
130130 char *result;
131131 if (vasprintf(&result, fmt, ap) != -1) {
132132 logh(pri, result);
133 free(result);
133134 return;
134135 }
135136 /* Otherwise, fallback to output on stderr. */
2929
3030 #include "lldpd-structs.h"
3131
32 /* Stolen from CCAN */
33 #define ALIGNOF(t) ((char *)(&((struct { char c; t _h; } *)0)->_h) - (char *)0)
34
3235 /* A serialized object */
3336 struct marshal_serialized {
3437 void *orig; /* Original reference. Also enforce alignment. */
128131 /* Then, serialize inner structures */
129132 for (current = mi->pointers; current->mi; current++) {
130133 size_t sublen;
134 size_t padlen;
131135 void *source;
132136 void *target = NULL;
133137 if (current->kind == ignore) continue;
162166 }
163167 }
164168 if (sublen == 0) continue; /* This was already serialized */
165 /* Append the result */
166 new = realloc(serialized, len + sublen);
169 /* Append the result, force alignment to be able to unserialize it */
170 padlen = ALIGNOF(struct marshal_serialized);
171 padlen = (padlen - (len % padlen)) % padlen;
172 new = realloc(serialized, len + padlen + sublen);
167173 if (!new) {
168174 log_warnx("marshal", "unable to allocate more memory to serialize structure %s",
169175 mi->name);
172178 len = -1;
173179 goto marshal_error;
174180 }
175 memcpy((unsigned char *)new + len, target, sublen);
181 memset((unsigned char *)new + len, 0, padlen);
182 memcpy((unsigned char *)new + len + padlen, target, sublen);
176183 free(target);
177 len += sublen;
184 len += sublen + padlen;
178185 serialized = (struct marshal_serialized *)new;
179186 }
180187
298305 /* Then, each substructure */
299306 for (current = mi->pointers; current->mi; current++) {
300307 size_t sublen;
308 size_t padlen;
301309 new = (unsigned char *)*output + current->offset;
302310 if (current->kind == ignore) {
303311 memset((unsigned char *)*output + current->offset,
321329 /* Deserialize */
322330 if (current->offset2)
323331 memcpy(&osize, (unsigned char *)*output + current->offset2, sizeof(int));
324 sublen = marshal_unserialize_(current->mi,
325 (unsigned char *)buffer + total_len, len - total_len, &new, pointers,
326 current->kind == substruct, osize);
327 if (sublen == 0) {
332 padlen = ALIGNOF(struct marshal_serialized);
333 padlen = (padlen - (total_len % padlen)) % padlen;
334 if (len < total_len + padlen || ((sublen = marshal_unserialize_(current->mi,
335 (unsigned char *)buffer + total_len + padlen,
336 len - total_len - padlen, &new, pointers,
337 current->kind == substruct, osize)) == 0)) {
328338 log_warnx("marshal", "unable to serialize substructure %s for %s",
329339 current->mi->name, mi->name);
330340 total_len = 0;
334344 if (current->kind == pointer)
335345 memcpy((unsigned char *)*output + current->offset,
336346 &new, sizeof(void *));
337 total_len += sublen;
347 total_len += sublen + padlen;
338348 }
339349
340350 unmarshal_error:
5656 marshal. The marshalled type has to be a structure. */
5757 #define MARSHAL_INFO(type) marshal_info_##type
5858 #ifdef MARSHAL_EXPORT
59 #define MARSHAL_HELPER_FUNCTIONS(type, ttype) \
60 ssize_t \
61 type ## _serialize(ttype *source, void *buffer) { \
62 return marshal_serialize(type, \
63 source, buffer); \
64 } \
65 size_t \
66 type ## _unserialize(void *buffer, size_t len, \
67 ttype **destination) { \
68 void *p; \
69 size_t rc; \
70 rc = marshal_unserialize(type, \
71 buffer, len, &p); \
72 if (rc <= 0) return rc; \
73 *destination = p; \
74 return rc; \
75 }
5976 #define MARSHAL_BEGIN(type) struct marshal_info MARSHAL_INFO(type) = \
6077 { \
6178 .name = #type, \
7188 .offset2 = offsetof(struct type, len), \
7289 .kind = pointer, \
7390 .mi = &marshal_info_fstring },
74 #define MARSHAL_END MARSHAL_SUBINFO_NULL }}
91 #define MARSHAL_END(type) MARSHAL_SUBINFO_NULL }}; \
92 MARSHAL_HELPER_FUNCTIONS(type, struct type)
7593 #else
76 #define MARSHAL_BEGIN(type) extern struct marshal_info MARSHAL_INFO(type)
94 #define MARSHAL_HELPER_FUNCTIONS(type, ttype) \
95 ssize_t type ## _serialize(ttype*, void*); \
96 size_t type ## _unserialize(void*, size_t, ttype**);
97 #define MARSHAL_BEGIN(type) extern struct marshal_info MARSHAL_INFO(type);
7798 #define MARSHAL_ADD(...)
7899 #define MARSHAL_FSTR(...)
79 #define MARSHAL_END
100 #define MARSHAL_END(type) MARSHAL_HELPER_FUNCTIONS(type, struct type)
80101 #endif
81102 /* Shortcuts */
82103 #define MARSHAL_POINTER(...) MARSHAL_ADD(pointer, ##__VA_ARGS__)
98119 MARSHAL_IGNORE(type, field.tqh_last)
99120 #define MARSHAL(type) \
100121 MARSHAL_BEGIN(type) \
101 MARSHAL_END
122 MARSHAL_END(type)
102123 #define MARSHAL_TQ(type, subtype) \
103124 MARSHAL_BEGIN(type) \
104125 MARSHAL_TQH(type, subtype) \
105 MARSHAL_END
126 MARSHAL_END(type)
106127
107128 /* Serialization */
108129 ssize_t marshal_serialize_(struct marshal_info *, void *, void **, int, void *, int)
0 #! /bin/sh
1 # test-driver - basic testsuite driver script.
2
3 scriptversion=2012-06-27.10; # UTC
4
5 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # 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}] [--] TEST-SCRIPT
47 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
48 END
49 }
50
51 # TODO: better error handling in option parsing (in particular, ensure
52 # TODO: $log_file, $trs_file and $test_name are defined).
53 test_name= # Used for reporting.
54 log_file= # Where to save the output of the test script.
55 trs_file= # Where to save the metadata of the test run.
56 expect_failure=no
57 color_tests=no
58 enable_hard_errors=yes
59 while test $# -gt 0; do
60 case $1 in
61 --help) print_usage; exit $?;;
62 --version) echo "test-driver $scriptversion"; exit $?;;
63 --test-name) test_name=$2; shift;;
64 --log-file) log_file=$2; shift;;
65 --trs-file) trs_file=$2; shift;;
66 --color-tests) color_tests=$2; shift;;
67 --expect-failure) expect_failure=$2; shift;;
68 --enable-hard-errors) enable_hard_errors=$2; shift;;
69 --) shift; break;;
70 -*) usage_error "invalid option: '$1'";;
71 esac
72 shift
73 done
74
75 if test $color_tests = yes; then
76 # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
77 red='' # Red.
78 grn='' # Green.
79 lgn='' # Light green.
80 blu='' # Blue.
81 mgn='' # Magenta.
82 std='' # No color.
83 else
84 red= grn= lgn= blu= mgn= std=
85 fi
86
87 do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
88 trap "st=129; $do_exit" 1
89 trap "st=130; $do_exit" 2
90 trap "st=141; $do_exit" 13
91 trap "st=143; $do_exit" 15
92
93 # Test script is run here.
94 "$@" >$log_file 2>&1
95 estatus=$?
96 if test $enable_hard_errors = no && test $estatus -eq 99; then
97 estatus=1
98 fi
99
100 case $estatus:$expect_failure in
101 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
102 0:*) col=$grn res=PASS recheck=no gcopy=no;;
103 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
104 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
105 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
106 *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
107 esac
108
109 # Report outcome to console.
110 echo "${col}${res}${std}: $test_name"
111
112 # Register the test result, and other relevant metadata.
113 echo ":test-result: $res" > $trs_file
114 echo ":global-test-result: $res" >> $trs_file
115 echo ":recheck: $recheck" >> $trs_file
116 echo ":copy-in-global-log: $gcopy" >> $trs_file
117
118 # Local Variables:
119 # mode: shell-script
120 # sh-indentation: 2
121 # eval: (add-hook 'write-file-hooks 'time-stamp)
122 # time-stamp-start: "scriptversion="
123 # time-stamp-format: "%:y-%02m-%02d.%02H"
124 # time-stamp-time-zone: "UTC"
125 # time-stamp-end: "; # UTC"
126 # End:
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
0 # Makefile.in generated by automake 1.13.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
2029 case $$MAKEFLAGS in \
2130 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3134 esac; \
32 test $$am__dry = yes; \
33 }
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3461 pkgdatadir = $(datadir)/@PACKAGE@
3562 pkgincludedir = $(includedir)/@PACKAGE@
3663 pkglibdir = $(libdir)/@PACKAGE@
5582 @HAVE_CHECK_TRUE@@USE_SNMP_TRUE@am__append_2 = check_snmp
5683 @HAVE_CHECK_TRUE@check_PROGRAMS = $(am__EXEEXT_2)
5784 subdir = tests
58 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
85 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
86 $(top_srcdir)/depcomp $(top_srcdir)/test-driver
5987 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6088 am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \
6189 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
90118 AM_V_lt = $(am__v_lt_@AM_V@)
91119 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
92120 am__v_lt_0 = --silent
121 am__v_lt_1 =
93122 am__check_edp_SOURCES_DIST = check_edp.c \
94123 $(top_srcdir)/src/daemon/lldpd.h common.h common.c
95124 @HAVE_CHECK_TRUE@am_check_edp_OBJECTS = check_edp.$(OBJEXT) \
130159 check_sonmp_LDADD = $(LDADD)
131160 @HAVE_CHECK_TRUE@check_sonmp_DEPENDENCIES = \
132161 @HAVE_CHECK_TRUE@ $(top_builddir)/src/daemon/liblldpd.la
162 AM_V_P = $(am__v_P_@AM_V@)
163 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
164 am__v_P_0 = false
165 am__v_P_1 = :
166 AM_V_GEN = $(am__v_GEN_@AM_V@)
167 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
168 am__v_GEN_0 = @echo " GEN " $@;
169 am__v_GEN_1 =
170 AM_V_at = $(am__v_at_@AM_V@)
171 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
172 am__v_at_0 = @
173 am__v_at_1 =
133174 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
134175 depcomp = $(SHELL) $(top_srcdir)/depcomp
135176 am__depfiles_maybe = depfiles
142183 $(AM_CFLAGS) $(CFLAGS)
143184 AM_V_CC = $(am__v_CC_@AM_V@)
144185 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
145 am__v_CC_0 = @echo " CC " $@;
146 AM_V_at = $(am__v_at_@AM_V@)
147 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
148 am__v_at_0 = @
186 am__v_CC_0 = @echo " CC " $@;
187 am__v_CC_1 =
149188 CCLD = $(CC)
150189 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
151190 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
152191 $(AM_LDFLAGS) $(LDFLAGS) -o $@
153192 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
154193 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
155 am__v_CCLD_0 = @echo " CCLD " $@;
156 AM_V_GEN = $(am__v_GEN_@AM_V@)
157 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
158 am__v_GEN_0 = @echo " GEN " $@;
194 am__v_CCLD_0 = @echo " CCLD " $@;
195 am__v_CCLD_1 =
159196 SOURCES = $(check_cdp_SOURCES) $(check_edp_SOURCES) \
160197 $(check_lldp_SOURCES) $(check_marshal_SOURCES) \
161198 $(check_snmp_SOURCES) $(check_sonmp_SOURCES)
168205 n|no|NO) false;; \
169206 *) (install-info --version) >/dev/null 2>&1;; \
170207 esac
208 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
209 # Read a list of newline-separated strings from the standard input,
210 # and print each of them once, without duplicates. Input order is
211 # *not* preserved.
212 am__uniquify_input = $(AWK) '\
213 BEGIN { nonempty = 0; } \
214 { items[$$0] = 1; nonempty = 1; } \
215 END { if (nonempty) { for (i in items) print i; }; } \
216 '
217 # Make sure the list of sources is unique. This is necessary because,
218 # e.g., the same source file might be shared among _SOURCES variables
219 # for different programs/libraries.
220 am__define_uniq_tagged_files = \
221 list='$(am__tagged_files)'; \
222 unique=`for i in $$list; do \
223 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
224 done | $(am__uniquify_input)`
171225 ETAGS = etags
172226 CTAGS = ctags
173 am__tty_colors = \
174 red=; grn=; lgn=; blu=; std=
227 am__tty_colors_dummy = \
228 mgn= red= grn= lgn= blu= brg= std=; \
229 am__color_tests=no
230 am__tty_colors = { \
231 $(am__tty_colors_dummy); \
232 if test "X$(AM_COLOR_TESTS)" = Xno; then \
233 am__color_tests=no; \
234 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
235 am__color_tests=yes; \
236 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
237 am__color_tests=yes; \
238 fi; \
239 if test $$am__color_tests = yes; then \
240 red=''; \
241 grn=''; \
242 lgn=''; \
243 blu=''; \
244 mgn=''; \
245 brg=''; \
246 std=''; \
247 fi; \
248 }
249 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
250 am__vpath_adj = case $$p in \
251 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
252 *) f=$$p;; \
253 esac;
254 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
255 am__install_max = 40
256 am__nobase_strip_setup = \
257 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
258 am__nobase_strip = \
259 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
260 am__nobase_list = $(am__nobase_strip_setup); \
261 for p in $$list; do echo "$$p $$p"; done | \
262 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
263 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
264 if (++n[$$2] == $(am__install_max)) \
265 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
266 END { for (dir in files) print dir, files[dir] }'
267 am__base_list = \
268 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
269 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
270 am__uninstall_files_from_dir = { \
271 test -z "$$files" \
272 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
273 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
274 $(am__cd) "$$dir" && rm -f $$files; }; \
275 }
276 am__recheck_rx = ^[ ]*:recheck:[ ]*
277 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
278 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
279 # A command that, given a newline-separated list of test names on the
280 # standard input, print the name of the tests that are to be re-run
281 # upon "make recheck".
282 am__list_recheck_tests = $(AWK) '{ \
283 recheck = 1; \
284 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
285 { \
286 if (rc < 0) \
287 { \
288 if ((getline line2 < ($$0 ".log")) < 0) \
289 recheck = 0; \
290 break; \
291 } \
292 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
293 { \
294 recheck = 0; \
295 break; \
296 } \
297 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
298 { \
299 break; \
300 } \
301 }; \
302 if (recheck) \
303 print $$0; \
304 close ($$0 ".trs"); \
305 close ($$0 ".log"); \
306 }'
307 # A command that, given a newline-separated list of test names on the
308 # standard input, create the global log from their .trs and .log files.
309 am__create_global_log = $(AWK) ' \
310 function fatal(msg) \
311 { \
312 print "fatal: making $@: " msg | "cat >&2"; \
313 exit 1; \
314 } \
315 function rst_section(header) \
316 { \
317 print header; \
318 len = length(header); \
319 for (i = 1; i <= len; i = i + 1) \
320 printf "="; \
321 printf "\n\n"; \
322 } \
323 { \
324 copy_in_global_log = 1; \
325 global_test_result = "RUN"; \
326 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
327 { \
328 if (rc < 0) \
329 fatal("failed to read from " $$0 ".trs"); \
330 if (line ~ /$(am__global_test_result_rx)/) \
331 { \
332 sub("$(am__global_test_result_rx)", "", line); \
333 sub("[ ]*$$", "", line); \
334 global_test_result = line; \
335 } \
336 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
337 copy_in_global_log = 0; \
338 }; \
339 if (copy_in_global_log) \
340 { \
341 rst_section(global_test_result ": " $$0); \
342 while ((rc = (getline line < ($$0 ".log"))) != 0) \
343 { \
344 if (rc < 0) \
345 fatal("failed to read from " $$0 ".log"); \
346 print line; \
347 }; \
348 printf "\n"; \
349 }; \
350 close ($$0 ".trs"); \
351 close ($$0 ".log"); \
352 }'
353 # Restructured Text title.
354 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
355 # Solaris 10 'make', and several other traditional 'make' implementations,
356 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
357 # by disabling -e (using the XSI extension "set +e") if it's set.
358 am__sh_e_setup = case $$- in *e*) set +e;; esac
359 # Default flags passed to test drivers.
360 am__common_driver_flags = \
361 --color-tests "$$am__color_tests" \
362 --enable-hard-errors "$$am__enable_hard_errors" \
363 --expect-failure "$$am__expect_failure"
364 # To be inserted before the command running the test. Creates the
365 # directory for the log if needed. Stores in $dir the directory
366 # containing $f, in $tst the test, in $log the log. Executes the
367 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
368 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
369 # will run the test scripts (or their associated LOG_COMPILER, if
370 # thy have one).
371 am__check_pre = \
372 $(am__sh_e_setup); \
373 $(am__vpath_adj_setup) $(am__vpath_adj) \
374 $(am__tty_colors); \
375 srcdir=$(srcdir); export srcdir; \
376 case "$@" in \
377 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
378 *) am__odir=.;; \
379 esac; \
380 test "x$$am__odir" = x"." || test -d "$$am__odir" \
381 || $(MKDIR_P) "$$am__odir" || exit $$?; \
382 if test -f "./$$f"; then dir=./; \
383 elif test -f "$$f"; then dir=; \
384 else dir="$(srcdir)/"; fi; \
385 tst=$$dir$$f; log='$@'; \
386 if test -n '$(DISABLE_HARD_ERRORS)'; then \
387 am__enable_hard_errors=no; \
388 else \
389 am__enable_hard_errors=yes; \
390 fi; \
391 case " $(XFAIL_TESTS) " in \
392 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
393 am__expect_failure=yes;; \
394 *) \
395 am__expect_failure=no;; \
396 esac; \
397 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
398 # A shell command to get the names of the tests scripts with any registered
399 # extension removed (i.e., equivalently, the names of the test logs, with
400 # the '.log' extension removed). The result is saved in the shell variable
401 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
402 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
403 # since that might cause problem with VPATH rewrites for suffix-less tests.
404 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
405 am__set_TESTS_bases = \
406 bases='$(TEST_LOGS)'; \
407 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
408 bases=`echo $$bases`
409 RECHECK_LOGS = $(TEST_LOGS)
410 AM_RECURSIVE_TARGETS = check recheck
411 TEST_SUITE_LOG = test-suite.log
412 TEST_EXTENSIONS = @EXEEXT@ .test
413 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
414 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
415 am__set_b = \
416 case '$@' in \
417 */*) \
418 case '$*' in \
419 */*) b='$*';; \
420 *) b=`echo '$@' | sed 's/\.log$$//'`; \
421 esac;; \
422 *) \
423 b='$*';; \
424 esac
425 am__test_logs1 = $(TESTS:=.log)
426 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
427 TEST_LOGS = $(am__test_logs2:.test.log=.log)
428 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
429 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
430 $(TEST_LOG_FLAGS)
175431 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
176432 ACLOCAL = @ACLOCAL@
177433 AMTAR = @AMTAR@
366622 all: all-am
367623
368624 .SUFFIXES:
369 .SUFFIXES: .c .lo .o .obj
625 .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
370626 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
371627 @for dep in $?; do \
372628 case '$(am__configure_deps)' in \
406662 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
407663 echo " rm -f" $$list; \
408664 rm -f $$list
665
409666 check_cdp$(EXEEXT): $(check_cdp_OBJECTS) $(check_cdp_DEPENDENCIES) $(EXTRA_check_cdp_DEPENDENCIES)
410667 @rm -f check_cdp$(EXEEXT)
411668 $(AM_V_CCLD)$(LINK) $(check_cdp_OBJECTS) $(check_cdp_LDADD) $(LIBS)
669
412670 check_edp$(EXEEXT): $(check_edp_OBJECTS) $(check_edp_DEPENDENCIES) $(EXTRA_check_edp_DEPENDENCIES)
413671 @rm -f check_edp$(EXEEXT)
414672 $(AM_V_CCLD)$(LINK) $(check_edp_OBJECTS) $(check_edp_LDADD) $(LIBS)
673
415674 check_lldp$(EXEEXT): $(check_lldp_OBJECTS) $(check_lldp_DEPENDENCIES) $(EXTRA_check_lldp_DEPENDENCIES)
416675 @rm -f check_lldp$(EXEEXT)
417676 $(AM_V_CCLD)$(LINK) $(check_lldp_OBJECTS) $(check_lldp_LDADD) $(LIBS)
677
418678 check_marshal$(EXEEXT): $(check_marshal_OBJECTS) $(check_marshal_DEPENDENCIES) $(EXTRA_check_marshal_DEPENDENCIES)
419679 @rm -f check_marshal$(EXEEXT)
420680 $(AM_V_CCLD)$(LINK) $(check_marshal_OBJECTS) $(check_marshal_LDADD) $(LIBS)
681
421682 check_snmp$(EXEEXT): $(check_snmp_OBJECTS) $(check_snmp_DEPENDENCIES) $(EXTRA_check_snmp_DEPENDENCIES)
422683 @rm -f check_snmp$(EXEEXT)
423684 $(AM_V_CCLD)$(LINK) $(check_snmp_OBJECTS) $(check_snmp_LDADD) $(LIBS)
685
424686 check_sonmp$(EXEEXT): $(check_sonmp_OBJECTS) $(check_sonmp_DEPENDENCIES) $(EXTRA_check_sonmp_DEPENDENCIES)
425687 @rm -f check_sonmp$(EXEEXT)
426688 $(AM_V_CCLD)$(LINK) $(check_sonmp_OBJECTS) $(check_sonmp_LDADD) $(LIBS)
466728 clean-libtool:
467729 -rm -rf .libs _libs
468730
469 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
470 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
471 unique=`for i in $$list; do \
472 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
473 done | \
474 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
475 END { if (nonempty) { for (i in files) print i; }; }'`; \
476 mkid -fID $$unique
477 tags: TAGS
478
479 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
480 $(TAGS_FILES) $(LISP)
731 ID: $(am__tagged_files)
732 $(am__define_uniq_tagged_files); mkid -fID $$unique
733 tags: tags-am
734 TAGS: tags
735
736 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
481737 set x; \
482738 here=`pwd`; \
483 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
484 unique=`for i in $$list; do \
485 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
486 done | \
487 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
488 END { if (nonempty) { for (i in files) print i; }; }'`; \
739 $(am__define_uniq_tagged_files); \
489740 shift; \
490741 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
491742 test -n "$$unique" || unique=$$empty_fix; \
497748 $$unique; \
498749 fi; \
499750 fi
500 ctags: CTAGS
501 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
502 $(TAGS_FILES) $(LISP)
503 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
504 unique=`for i in $$list; do \
505 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
506 done | \
507 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
508 END { if (nonempty) { for (i in files) print i; }; }'`; \
751 ctags: ctags-am
752
753 CTAGS: ctags
754 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
755 $(am__define_uniq_tagged_files); \
509756 test -z "$(CTAGS_ARGS)$$unique" \
510757 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
511758 $$unique
514761 here=`$(am__cd) $(top_builddir) && pwd` \
515762 && $(am__cd) $(top_srcdir) \
516763 && gtags -i $(GTAGS_ARGS) "$$here"
764 cscopelist: cscopelist-am
765
766 cscopelist-am: $(am__tagged_files)
767 list='$(am__tagged_files)'; \
768 case "$(srcdir)" in \
769 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
770 *) sdir=$(subdir)/$(srcdir) ;; \
771 esac; \
772 for i in $$list; do \
773 if test -f "$$i"; then \
774 echo "$(subdir)/$$i"; \
775 else \
776 echo "$$sdir/$$i"; \
777 fi; \
778 done >> $(top_builddir)/cscope.files
517779
518780 distclean-tags:
519781 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
520782
521 check-TESTS: $(TESTS)
522 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
523 srcdir=$(srcdir); export srcdir; \
524 list=' $(TESTS) '; \
525 $(am__tty_colors); \
526 if test -n "$$list"; then \
527 for tst in $$list; do \
528 if test -f ./$$tst; then dir=./; \
529 elif test -f $$tst; then dir=; \
530 else dir="$(srcdir)/"; fi; \
531 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
532 all=`expr $$all + 1`; \
533 case " $(XFAIL_TESTS) " in \
534 *[\ \ ]$$tst[\ \ ]*) \
535 xpass=`expr $$xpass + 1`; \
536 failed=`expr $$failed + 1`; \
537 col=$$red; res=XPASS; \
538 ;; \
539 *) \
540 col=$$grn; res=PASS; \
541 ;; \
542 esac; \
543 elif test $$? -ne 77; then \
544 all=`expr $$all + 1`; \
545 case " $(XFAIL_TESTS) " in \
546 *[\ \ ]$$tst[\ \ ]*) \
547 xfail=`expr $$xfail + 1`; \
548 col=$$lgn; res=XFAIL; \
549 ;; \
550 *) \
551 failed=`expr $$failed + 1`; \
552 col=$$red; res=FAIL; \
553 ;; \
554 esac; \
783 # Recover from deleted '.trs' file; this should ensure that
784 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
785 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
786 # to avoid problems with "make -n".
787 .log.trs:
788 rm -f $< $@
789 $(MAKE) $(AM_MAKEFLAGS) $<
790
791 # Leading 'am--fnord' is there to ensure the list of targets does not
792 # expand to empty, as could happen e.g. with make check TESTS=''.
793 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
794 am--force-recheck:
795 @:
796
797 $(TEST_SUITE_LOG): $(TEST_LOGS)
798 @$(am__set_TESTS_bases); \
799 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
800 redo_bases=`for i in $$bases; do \
801 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
802 done`; \
803 if test -n "$$redo_bases"; then \
804 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
805 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
806 if $(am__make_dryrun); then :; else \
807 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
808 fi; \
809 fi; \
810 if test -n "$$am__remaking_logs"; then \
811 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
812 "recursion detected" >&2; \
813 else \
814 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
815 fi; \
816 if $(am__make_dryrun); then :; else \
817 st=0; \
818 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
819 for i in $$redo_bases; do \
820 test -f $$i.trs && test -r $$i.trs \
821 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
822 test -f $$i.log && test -r $$i.log \
823 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
824 done; \
825 test $$st -eq 0 || exit 1; \
826 fi
827 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
828 ws='[ ]'; \
829 results=`for b in $$bases; do echo $$b.trs; done`; \
830 test -n "$$results" || results=/dev/null; \
831 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
832 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
833 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
834 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
835 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
836 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
837 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
838 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
839 success=true; \
840 else \
841 success=false; \
842 fi; \
843 br='==================='; br=$$br$$br$$br$$br; \
844 result_count () \
845 { \
846 if test x"$$1" = x"--maybe-color"; then \
847 maybe_colorize=yes; \
848 elif test x"$$1" = x"--no-color"; then \
849 maybe_colorize=no; \
555850 else \
556 skip=`expr $$skip + 1`; \
557 col=$$blu; res=SKIP; \
851 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
558852 fi; \
559 echo "$${col}$$res$${std}: $$tst"; \
560 done; \
561 if test "$$all" -eq 1; then \
562 tests="test"; \
563 All=""; \
564 else \
565 tests="tests"; \
566 All="All "; \
567 fi; \
568 if test "$$failed" -eq 0; then \
569 if test "$$xfail" -eq 0; then \
570 banner="$$All$$all $$tests passed"; \
853 shift; \
854 desc=$$1 count=$$2; \
855 if test $$maybe_colorize = yes && test $$count -gt 0; then \
856 color_start=$$3 color_end=$$std; \
571857 else \
572 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
573 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
858 color_start= color_end=; \
574859 fi; \
575 else \
576 if test "$$xpass" -eq 0; then \
577 banner="$$failed of $$all $$tests failed"; \
578 else \
579 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
580 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
581 fi; \
582 fi; \
583 dashes="$$banner"; \
584 skipped=""; \
585 if test "$$skip" -ne 0; then \
586 if test "$$skip" -eq 1; then \
587 skipped="($$skip test was not run)"; \
588 else \
589 skipped="($$skip tests were not run)"; \
590 fi; \
591 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
592 dashes="$$skipped"; \
593 fi; \
594 report=""; \
595 if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
596 report="Please report to $(PACKAGE_BUGREPORT)"; \
597 test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
598 dashes="$$report"; \
599 fi; \
600 dashes=`echo "$$dashes" | sed s/./=/g`; \
601 if test "$$failed" -eq 0; then \
602 col="$$grn"; \
603 else \
604 col="$$red"; \
605 fi; \
606 echo "$${col}$$dashes$${std}"; \
607 echo "$${col}$$banner$${std}"; \
608 test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
609 test -z "$$report" || echo "$${col}$$report$${std}"; \
610 echo "$${col}$$dashes$${std}"; \
611 test "$$failed" -eq 0; \
612 else :; fi
860 echo "$${color_start}# $$desc $$count$${color_end}"; \
861 }; \
862 create_testsuite_report () \
863 { \
864 result_count $$1 "TOTAL:" $$all "$$brg"; \
865 result_count $$1 "PASS: " $$pass "$$grn"; \
866 result_count $$1 "SKIP: " $$skip "$$blu"; \
867 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
868 result_count $$1 "FAIL: " $$fail "$$red"; \
869 result_count $$1 "XPASS:" $$xpass "$$red"; \
870 result_count $$1 "ERROR:" $$error "$$mgn"; \
871 }; \
872 { \
873 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
874 $(am__rst_title); \
875 create_testsuite_report --no-color; \
876 echo; \
877 echo ".. contents:: :depth: 2"; \
878 echo; \
879 for b in $$bases; do echo $$b; done \
880 | $(am__create_global_log); \
881 } >$(TEST_SUITE_LOG).tmp || exit 1; \
882 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
883 if $$success; then \
884 col="$$grn"; \
885 else \
886 col="$$red"; \
887 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
888 fi; \
889 echo "$${col}$$br$${std}"; \
890 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
891 echo "$${col}$$br$${std}"; \
892 create_testsuite_report --maybe-color; \
893 echo "$$col$$br$$std"; \
894 if $$success; then :; else \
895 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
896 if test -n "$(PACKAGE_BUGREPORT)"; then \
897 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
898 fi; \
899 echo "$$col$$br$$std"; \
900 fi; \
901 $$success || exit 1
902
903 check-TESTS:
904 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
905 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
906 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
907 @set +e; $(am__set_TESTS_bases); \
908 log_list=`for i in $$bases; do echo $$i.log; done`; \
909 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
910 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
911 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
912 exit $$?;
913 recheck: all $(check_PROGRAMS)
914 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
915 @set +e; $(am__set_TESTS_bases); \
916 bases=`for i in $$bases; do echo $$i; done \
917 | $(am__list_recheck_tests)` || exit 1; \
918 log_list=`for i in $$bases; do echo $$i.log; done`; \
919 log_list=`echo $$log_list`; \
920 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
921 am__force_recheck=am--force-recheck \
922 TEST_LOGS="$$log_list"; \
923 exit $$?
924 check_marshal.log: check_marshal$(EXEEXT)
925 @p='check_marshal$(EXEEXT)'; \
926 b='check_marshal'; \
927 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
928 --log-file $$b.log --trs-file $$b.trs \
929 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
930 "$$tst" $(AM_TESTS_FD_REDIRECT)
931 check_lldp.log: check_lldp$(EXEEXT)
932 @p='check_lldp$(EXEEXT)'; \
933 b='check_lldp'; \
934 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
935 --log-file $$b.log --trs-file $$b.trs \
936 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
937 "$$tst" $(AM_TESTS_FD_REDIRECT)
938 check_cdp.log: check_cdp$(EXEEXT)
939 @p='check_cdp$(EXEEXT)'; \
940 b='check_cdp'; \
941 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
942 --log-file $$b.log --trs-file $$b.trs \
943 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
944 "$$tst" $(AM_TESTS_FD_REDIRECT)
945 check_sonmp.log: check_sonmp$(EXEEXT)
946 @p='check_sonmp$(EXEEXT)'; \
947 b='check_sonmp'; \
948 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
949 --log-file $$b.log --trs-file $$b.trs \
950 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
951 "$$tst" $(AM_TESTS_FD_REDIRECT)
952 check_edp.log: check_edp$(EXEEXT)
953 @p='check_edp$(EXEEXT)'; \
954 b='check_edp'; \
955 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
956 --log-file $$b.log --trs-file $$b.trs \
957 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
958 "$$tst" $(AM_TESTS_FD_REDIRECT)
959 check_snmp.log: check_snmp$(EXEEXT)
960 @p='check_snmp$(EXEEXT)'; \
961 b='check_snmp'; \
962 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
963 --log-file $$b.log --trs-file $$b.trs \
964 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
965 "$$tst" $(AM_TESTS_FD_REDIRECT)
966 .test.log:
967 @p='$<'; \
968 $(am__set_b); \
969 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
970 --log-file $$b.log --trs-file $$b.trs \
971 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
972 "$$tst" $(AM_TESTS_FD_REDIRECT)
973 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
974 @am__EXEEXT_TRUE@ @p='$<'; \
975 @am__EXEEXT_TRUE@ $(am__set_b); \
976 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
977 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
978 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
979 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
613980
614981 distdir: $(DISTFILES)
615982 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
6681035 fi
6691036 mostlyclean-generic:
6701037 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
1038 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1039 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1040 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
6711041
6721042 clean-generic:
6731043
7511121
7521122 .MAKE: check-am install-am install-strip
7531123
754 .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
755 clean-checkPROGRAMS clean-generic clean-libtool ctags \
756 distclean distclean-compile distclean-generic \
1124 .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
1125 clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
1126 ctags ctags-am distclean distclean-compile distclean-generic \
7571127 distclean-libtool distclean-tags distdir dvi dvi-am html \
7581128 html-am info info-am install install-am install-data \
7591129 install-data-am install-dvi install-dvi-am install-exec \
7631133 installcheck-am installdirs maintainer-clean \
7641134 maintainer-clean-generic mostlyclean mostlyclean-compile \
7651135 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
766 tags uninstall uninstall-am
1136 recheck tags tags-am uninstall uninstall-am
7671137
7681138
7691139 # Tell versions [3.59,3.63) of GNU make to not export all variables.
3232 .a5 = { 'A', 'B', 'C', 'D', 'E', 'F', 'G'},
3333 };
3434 struct struct_simple *destination;
35 void *p;
36 void *buffer;
37 size_t len, len2;
38
39 len = marshal_serialize(struct_simple, &source, &buffer);
35 void *buffer;
36 size_t len, len2;
37
38 len = struct_simple_serialize(&source, &buffer);
4039 fail_unless(len > 0, "Unable to serialize");
4140 memset(&source, 0, sizeof(struct struct_simple));
42 len2 = marshal_unserialize(struct_simple, buffer, len, &p);
43 fail_unless(len2 > 0, "Unable to deserialize");
44 destination = p;
41 len2 = struct_simple_unserialize(buffer, len, &destination);
42 fail_unless(len2 > 0, "Unable to deserialize");
4543 free(buffer);
4644 ck_assert_int_eq(len, len2);
4745 ck_assert_int_eq(destination->a1, 78452);
6664 };
6765 MARSHAL_BEGIN(struct_sub)
6866 MARSHAL_SUBSTRUCT(struct_sub, struct_simple, e2)
69 MARSHAL_END;
67 MARSHAL_END(struct_sub);
7068
7169 START_TEST(test_substruct_structure) {
7270 struct struct_sub source = {
8280 };
8381
8482 struct struct_sub *destination;
85 void *p;
86 void *buffer;
87 size_t len, len2;
88
89 len = marshal_serialize(struct_sub, &source, &buffer);
83 void *buffer;
84 size_t len, len2;
85
86 len = struct_sub_serialize(&source, &buffer);
9087 fail_unless(len > 0, "Unable to serialize");
9188 memset(&source, 0, sizeof(struct struct_sub));
92 len2 = marshal_unserialize(struct_sub, buffer, len, &p);
93 fail_unless(len2 > 0, "Unable to deserialize");
94 free(buffer);
95 destination = p;
89 len2 = struct_sub_unserialize(buffer, len, &destination);
90 fail_unless(len2 > 0, "Unable to deserialize");
91 free(buffer);
9692 ck_assert_int_eq(len, len2);
9793 ck_assert_int_eq(destination->e1, -5122);
9894 ck_assert_int_eq(destination->e2.a1, 78452);
120116 };
121117 MARSHAL_BEGIN(struct_onepointer)
122118 MARSHAL_POINTER(struct_onepointer, struct_simple, b4)
123 MARSHAL_END;
119 MARSHAL_END(struct_onepointer);
124120
125121 START_TEST(test_pointer_structure) {
126122 struct struct_simple source_simple = {
139135 };
140136
141137 struct struct_onepointer *destination;
142 void *p;
143 void *buffer;
144 size_t len, len2;
145
146 len = marshal_serialize(struct_onepointer, &source, &buffer);
138 void *buffer;
139 size_t len, len2;
140
141 len = struct_onepointer_serialize(&source, &buffer);
147142 fail_unless(len > 0, "Unable to serialize");
148143 memset(&source_simple, 0, sizeof(struct struct_simple));
149144 memset(&source, 0, sizeof(struct struct_onepointer));
150 len2 = marshal_unserialize(struct_onepointer, buffer, len, &p);
151 fail_unless(len2 > 0, "Unable to deserialize");
152 free(buffer);
153 destination = p;
145 len2 = struct_onepointer_unserialize(buffer, len, &destination);
146 fail_unless(len2 > 0, "Unable to deserialize");
147 free(buffer);
154148 ck_assert_int_eq(len, len2);
155149 ck_assert_int_eq(destination->b1, 18);
156150 ck_assert_int_eq(destination->b2, 15454);
181175 MARSHAL_BEGIN(struct_nestedpointers)
182176 MARSHAL_POINTER(struct_nestedpointers, struct_simple, c3)
183177 MARSHAL_POINTER(struct_nestedpointers, struct_onepointer, c4)
184 MARSHAL_END;
178 MARSHAL_END(struct_nestedpointers);
185179
186180 START_TEST(test_several_pointers_structure) {
187181 struct struct_simple source_simple1 = {
214208 };
215209
216210 struct struct_nestedpointers *destination;
217 void *p;
218 void *buffer;
219 size_t len, len2;
220
221 len = marshal_serialize(struct_nestedpointers, &source, &buffer);
211 void *buffer;
212 size_t len, len2;
213
214 len = struct_nestedpointers_serialize(&source, &buffer);
222215 fail_unless(len > 0, "Unable to serialize");
223216 memset(&source_simple1, 0, sizeof(struct struct_simple));
224217 memset(&source_simple2, 0, sizeof(struct struct_simple));
225218 memset(&source_onepointer, 0, sizeof(struct struct_onepointer));
226219 memset(&source, 0, sizeof(struct struct_nestedpointers));
227 len2 = marshal_unserialize(struct_nestedpointers, buffer, len, &p);
228 fail_unless(len2 > 0, "Unable to deserialize");
229 free(buffer);
230 destination = p;
220 len2 = struct_nestedpointers_unserialize(buffer, len, &destination);
221 fail_unless(len2 > 0, "Unable to deserialize");
222 free(buffer);
231223 ck_assert_int_eq(len, len2);
232224 ck_assert_int_eq(destination->c1, 4542);
233225 ck_assert_int_eq(destination->c2, 5665454);
275267 };
276268
277269 struct struct_nestedpointers *destination;
278 void *p;
279 void *buffer;
280 size_t len, len2;
281
282 len = marshal_serialize(struct_nestedpointers, &source, &buffer);
270 void *buffer;
271 size_t len, len2;
272
273 len = struct_nestedpointers_serialize(&source, &buffer);
283274 fail_unless(len > 0, "Unable to serialize");
284275 memset(&source_simple2, 0, sizeof(struct struct_simple));
285276 memset(&source, 0, sizeof(struct struct_nestedpointers));
286 len2 = marshal_unserialize(struct_nestedpointers, buffer, len, &p);
287 fail_unless(len2 > 0, "Unable to deserialize");
288 free(buffer);
289 destination = p;
277 len2 = struct_nestedpointers_unserialize(buffer, len, &destination);
278 fail_unless(len2 > 0, "Unable to deserialize");
279 free(buffer);
290280 ck_assert_int_eq(len, len2);
291281 ck_assert_int_eq(destination->c1, 4542);
292282 ck_assert_int_eq(destination->c2, 5665454);
312302 MARSHAL_POINTER(struct_multipleref, struct_simple, f2)
313303 MARSHAL_POINTER(struct_multipleref, struct_simple, f3)
314304 MARSHAL_POINTER(struct_multipleref, struct_nestedpointers, f4)
315 MARSHAL_END;
305 MARSHAL_END(struct_multipleref);
316306
317307 START_TEST(test_multiple_references) {
318308 struct struct_simple source_simple = {
334324 };
335325
336326 struct struct_multipleref *destination;
337 void *p;
338327 void *buffer = NULL;
339328 size_t len, len2;
340329
341 len = marshal_serialize(struct_multipleref, &source, &buffer);
330 len = struct_multipleref_serialize(&source, &buffer);
342331 fail_unless(buffer != NULL, "Buffer is empty");
343332 fail_unless(len > 0, "Unable to serialize");
344333 memset(&source_simple, 0, sizeof(struct struct_simple));
345334 memset(&source_nested, 0, sizeof(struct struct_nestedpointers));
346335 memset(&source, 0, sizeof(struct struct_multipleref));
347 len2 = marshal_unserialize(struct_multipleref, buffer, len, &p);
348 fail_unless(len2 > 0, "Unable to deserialize");
349 free(buffer);
350 destination = p;
336 len2 = struct_multipleref_unserialize(buffer, len, &destination);
337 fail_unless(len2 > 0, "Unable to deserialize");
338 free(buffer);
351339 ck_assert_int_eq(len, len2);
352340 ck_assert_int_eq(destination->f1, 15);
353341 ck_assert_int_eq(destination->f2, destination->f3);
367355 };
368356 MARSHAL_BEGIN(struct_circularref)
369357 MARSHAL_POINTER(struct_circularref, struct_circularref, g2)
370 MARSHAL_END;
358 MARSHAL_END(struct_circularref);
371359
372360 START_TEST(test_circular_references) {
373361 struct struct_circularref source = {
376364 };
377365
378366 struct struct_circularref *destination;
379 void *p;
380367 void *buffer = NULL;
381368 size_t len, len2;
382369
383 len = marshal_serialize(struct_circularref, &source, &buffer);
370 len = struct_circularref_serialize(&source, &buffer);
384371 fail_unless(len > 0, "Unable to serialize");
385372 memset(&source, 0, sizeof(struct struct_circularref));
386 len2 = marshal_unserialize(struct_circularref, buffer, len, &p);
387 fail_unless(len2 > 0, "Unable to deserialize");
388 free(buffer);
389 destination = p;
373 len2 = struct_circularref_unserialize(buffer, len, &destination);
374 fail_unless(len2 > 0, "Unable to deserialize");
375 free(buffer);
390376 ck_assert_int_eq(len, len2);
391377 ck_assert_int_eq(destination->g1, 42);
392378 ck_assert_int_eq(destination->g2->g1, 42);
406392 };
407393
408394 struct struct_nestedpointers *destination;
409 void *p;
410395 void *buffer;
411396 size_t len, len2;
412397 int i, j;
413398
414399 log_register(donothing);
415400
416 len = marshal_serialize(struct_nestedpointers, &source, &buffer);
401 len = struct_nestedpointers_serialize(&source, &buffer);
417402 fail_unless(len > 0, "Unable to serialize");
418403 memset(&source_simple1, 0, sizeof(struct struct_simple));
419404 memset(&source_onepointer, 0, sizeof(struct struct_onepointer));
421406 /* Loop 30 times to ease debugging leaks with valgrind */
422407 for (j = 0; j < 30; j++) {
423408 for (i = 0; i < len; i++) {
424 len2 = marshal_unserialize(struct_nestedpointers, buffer, 1, &p);
409 len2 = struct_nestedpointers_unserialize(buffer, 1, &destination);
425410 fail_unless(len2 == 0,
426411 "Should not be able to deserialize, too small (%d<%d)",
427412 i, len);
428413 }
429414 }
430 len2 = marshal_unserialize(struct_nestedpointers, buffer, len + 5, &p);
415 len2 = struct_nestedpointers_unserialize(buffer, len + 5, &destination);
431416 fail_unless(len2 == len, "Deserialized too much");
432 destination = p;
433417 free(destination->c3);
434418 free(destination->c4); free(destination); free(buffer);
435419
445429 MARSHAL_BEGIN(struct_simpleentry)
446430 MARSHAL_TQE(struct_simpleentry, s_entries)
447431 MARSHAL_POINTER(struct_simpleentry, struct_simple, g2)
448 MARSHAL_END;
432 MARSHAL_END(struct_simpleentry);
449433
450434 TAILQ_HEAD(list_simple, struct_simpleentry);
451435 MARSHAL_TQ(list_simple, struct_simpleentry);
476460 .g2 = &source_simple,
477461 };
478462 struct list_simple *destination;
479 void *p;
480463 void *buffer;
481464 size_t len, len2;
482465 struct struct_simpleentry *e1, *e2;
488471 TAILQ_INSERT_TAIL(&source, &entry3, s_entries);
489472 TAILQ_INSERT_TAIL(&source, &entry4, s_entries);
490473
491 len = marshal_serialize(list_simple, &source, &buffer);
474 len = list_simple_serialize(&source, &buffer);
492475 fail_unless(len > 0, "Unable to serialize");
493476 memset(&source, 0, sizeof(struct list_simple));
494477 memset(&entry1, 0, sizeof(struct struct_simpleentry));
495478 memset(&entry2, 0, sizeof(struct struct_simpleentry));
496479 memset(&entry3, 0, sizeof(struct struct_simpleentry));
497480 memset(&entry4, 0, sizeof(struct struct_simpleentry));
498 len2 = marshal_unserialize(list_simple, buffer, len, &p);
499 fail_unless(len2 > 0, "Unable to deserialize");
500 free(buffer);
501
502 destination = p;
481 len2 = list_simple_unserialize(buffer, len, &destination);
482 fail_unless(len2 > 0, "Unable to deserialize");
483 free(buffer);
484
503485 e1 = TAILQ_FIRST(destination);
504486 ck_assert_int_eq(e1->g1, 47);
505487 s = e1->g2;
530512 };
531513 MARSHAL_BEGIN(struct_withlist)
532514 MARSHAL_SUBTQ(struct_withlist, struct_simpleentry, i2)
533 MARSHAL_END;
515 MARSHAL_END(struct_withlist);
534516
535517 START_TEST(test_embedded_list) {
536518 struct struct_withlist source = {
561543 .g2 = &source_simple,
562544 };
563545 struct struct_withlist *destination;
564 void *p;
565546 void *buffer;
566547 size_t len, len2;
567548 struct struct_simpleentry *e1, *e2;
573554 TAILQ_INSERT_TAIL(&source.i2, &entry3, s_entries);
574555 TAILQ_INSERT_TAIL(&source.i2, &entry4, s_entries);
575556
576 len = marshal_serialize(struct_withlist, &source, &buffer);
557 len = struct_withlist_serialize(&source, &buffer);
577558 fail_unless(len > 0, "Unable to serialize");
578559 memset(&source, 0, sizeof(struct list_simple));
579560 memset(&entry1, 0, sizeof(struct struct_simpleentry));
580561 memset(&entry2, 0, sizeof(struct struct_simpleentry));
581562 memset(&entry3, 0, sizeof(struct struct_simpleentry));
582563 memset(&entry4, 0, sizeof(struct struct_simpleentry));
583 len2 = marshal_unserialize(struct_withlist, buffer, len, &p);
584 fail_unless(len2 > 0, "Unable to deserialize");
585 free(buffer);
586
587 destination = p;
564 len2 = struct_withlist_unserialize(buffer, len, &destination);
565 fail_unless(len2 > 0, "Unable to deserialize");
566 free(buffer);
567
588568 ck_assert_int_eq(destination->i1, 45424);
589569 ck_assert_int_eq(destination->i3, 4542);
590570 e1 = TAILQ_FIRST(&destination->i2);
619599 MARSHAL_BEGIN(struct_string)
620600 MARSHAL_STR(struct_string, s2)
621601 MARSHAL_STR(struct_string, s3)
622 MARSHAL_END;
602 MARSHAL_END(struct_string);
623603
624604 START_TEST(test_string) {
625605 struct struct_string source = {
628608 .s3 = "String 3",
629609 };
630610 struct struct_string *destination;
631 void *p;
632 void *buffer;
633 size_t len, len2;
634
635 len = marshal_serialize(struct_string, &source, &buffer);
611 void *buffer;
612 size_t len, len2;
613
614 len = struct_string_serialize(&source, &buffer);
636615 fail_unless(len > 0, "Unable to serialize");
637616 memset(&source, 0, sizeof(struct struct_string));
638 len2 = marshal_unserialize(struct_string, buffer, len, &p);
639 fail_unless(len2 > 0, "Unable to deserialize");
640 free(buffer);
641 destination = p;
617 len2 = struct_string_unserialize(buffer, len, &destination);
618 fail_unless(len2 > 0, "Unable to deserialize");
619 free(buffer);
642620 ck_assert_int_eq(len, len2);
643621 ck_assert_int_eq(destination->s1, 44444);
644622 ck_assert_str_eq(destination->s2, "String 2");
657635 MARSHAL_BEGIN(struct_fixedstring)
658636 MARSHAL_FSTR(struct_fixedstring, s2, s2_len)
659637 MARSHAL_STR(struct_fixedstring, s3)
660 MARSHAL_END;
638 MARSHAL_END(struct_fixedstring);
661639
662640 START_TEST(test_fixed_string) {
663641 struct struct_fixedstring source = {
667645 .s3 = "String 3",
668646 };
669647 struct struct_fixedstring *destination;
670 void *p;
671 void *buffer;
672 size_t len, len2;
673
674 len = marshal_serialize(struct_fixedstring, &source, &buffer);
648 void *buffer;
649 size_t len, len2;
650
651 len = struct_fixedstring_serialize(&source, &buffer);
675652 fail_unless(len > 0, "Unable to serialize");
676653 memset(&source, 0, sizeof(struct struct_fixedstring));
677 len2 = marshal_unserialize(struct_fixedstring, buffer, len, &p);
678 fail_unless(len2 > 0, "Unable to deserialize");
679 free(buffer);
680 destination = p;
654 len2 = struct_fixedstring_unserialize(buffer, len, &destination);
655 fail_unless(len2 > 0, "Unable to deserialize");
656 free(buffer);
681657 ck_assert_int_eq(len, len2);
682658 ck_assert_int_eq(destination->s1, 44444);
683659 ck_assert_int_eq(destination->s2_len, 8);
701677 };
702678 MARSHAL_BEGIN(struct_ignore)
703679 MARSHAL_IGNORE(struct_ignore, t2)
704 MARSHAL_END;
680 MARSHAL_END(struct_ignore);
705681
706682 START_TEST(test_ignore) {
707683 struct struct_ignore source = {
710686 .t3 = 11111,
711687 };
712688 struct struct_ignore *destination;
713 void *p;
714 void *buffer;
715 size_t len, len2;
716
717 len = marshal_serialize(struct_ignore, &source, &buffer);
689 void *buffer;
690 size_t len, len2;
691
692 len = struct_ignore_serialize(&source, &buffer);
718693 fail_unless(len > 0, "Unable to serialize");
719694 memset(&source, 0, sizeof(struct struct_ignore));
720 len2 = marshal_unserialize(struct_ignore, buffer, len, &p);
721 fail_unless(len2 > 0, "Unable to deserialize");
722 free(buffer);
723 destination = p;
695 len2 = struct_ignore_unserialize(buffer, len, &destination);
696 fail_unless(len2 > 0, "Unable to deserialize");
697 free(buffer);
724698 ck_assert_int_eq(len, len2);
725699 ck_assert_int_eq(destination->t1, 4544);
726700 ck_assert_int_eq(destination->t2, NULL);
749723 memcpy(&source_simple2, &source_simple1, sizeof(source_simple1));
750724 memcpy(&entry2, &entry1, sizeof(entry1));
751725 entry2.g2 = &source_simple2;
752 ssize_t len1 = marshal_serialize(struct_simpleentry, &entry1, &buffer1);
753 ssize_t len2 = marshal_serialize(struct_simpleentry, &entry2, &buffer2);
726 ssize_t len1 = struct_simpleentry_serialize(&entry1, &buffer1);
727 ssize_t len2 = struct_simpleentry_serialize(&entry2, &buffer2);
754728 fail_unless(len1 > 0, "Unable to serialize");
755729 fail_unless(len2 > 0, "Unable to serialize");
756730 ck_assert_int_eq(len1, len2);